[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1377242625.14021.5.camel@jlt4.sipsolutions.net>
Date: Fri, 23 Aug 2013 09:23:45 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Pravin B Shelar <pshelar@...ira.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Jesse Gross <jesse@...ira.com>
Subject: Re: [PATCH 2/2] genl: Hold reference on correct module while
netlink-dump.
> +extern int __genl_register_family(struct genl_family *family, struct module *module);
Why add an extra argument instead of just assigning family->module in
the inline wrapper(s):
static inline int genl_register_family(struct genl_family *family)
{
family->module = THIS_MODULE;
return __genl_register_family(family);
}
Although I guess it doesn't really make a big difference. Just curious
if there was a reason you decided to do it this way.
johannes
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists