@@ -166,7 +166,8 @@ static inline int _genl_register_family_with_ops(struct genl_family *family,
166166int genl_unregister_family (struct genl_family * family );
167167int genl_register_mc_group (struct genl_family * family ,
168168 struct genl_multicast_group * grp );
169- void genl_notify (struct sk_buff * skb , struct net * net , u32 portid ,
169+ void genl_notify (struct genl_family * family ,
170+ struct sk_buff * skb , struct net * net , u32 portid ,
170171 u32 group , struct nlmsghdr * nlh , gfp_t flags );
171172
172173void * genlmsg_put (struct sk_buff * skb , u32 portid , u32 seq ,
@@ -246,41 +247,48 @@ static inline void genlmsg_cancel(struct sk_buff *skb, void *hdr)
246247
247248/**
248249 * genlmsg_multicast_netns - multicast a netlink message to a specific netns
250+ * @family: the generic netlink family
249251 * @net: the net namespace
250252 * @skb: netlink message as socket buffer
251253 * @portid: own netlink portid to avoid sending to yourself
252254 * @group: multicast group id
253255 * @flags: allocation flags
254256 */
255- static inline int genlmsg_multicast_netns (struct net * net , struct sk_buff * skb ,
257+ static inline int genlmsg_multicast_netns (struct genl_family * family ,
258+ struct net * net , struct sk_buff * skb ,
256259 u32 portid , unsigned int group , gfp_t flags )
257260{
258261 return nlmsg_multicast (net -> genl_sock , skb , portid , group , flags );
259262}
260263
261264/**
262265 * genlmsg_multicast - multicast a netlink message to the default netns
266+ * @family: the generic netlink family
263267 * @skb: netlink message as socket buffer
264268 * @portid: own netlink portid to avoid sending to yourself
265269 * @group: multicast group id
266270 * @flags: allocation flags
267271 */
268- static inline int genlmsg_multicast (struct sk_buff * skb , u32 portid ,
272+ static inline int genlmsg_multicast (struct genl_family * family ,
273+ struct sk_buff * skb , u32 portid ,
269274 unsigned int group , gfp_t flags )
270275{
271- return genlmsg_multicast_netns (& init_net , skb , portid , group , flags );
276+ return genlmsg_multicast_netns (family , & init_net , skb ,
277+ portid , group , flags );
272278}
273279
274280/**
275281 * genlmsg_multicast_allns - multicast a netlink message to all net namespaces
282+ * @family: the generic netlink family
276283 * @skb: netlink message as socket buffer
277284 * @portid: own netlink portid to avoid sending to yourself
278285 * @group: multicast group id
279286 * @flags: allocation flags
280287 *
281288 * This function must hold the RTNL or rcu_read_lock().
282289 */
283- int genlmsg_multicast_allns (struct sk_buff * skb , u32 portid ,
290+ int genlmsg_multicast_allns (struct genl_family * family ,
291+ struct sk_buff * skb , u32 portid ,
284292 unsigned int group , gfp_t flags );
285293
286294/**
@@ -353,6 +361,7 @@ static inline struct sk_buff *genlmsg_new(size_t payload, gfp_t flags)
353361
354362/**
355363 * genl_set_err - report error to genetlink broadcast listeners
364+ * @family: the generic netlink family
356365 * @net: the network namespace to report the error to
357366 * @portid: the PORTID of a process that we want to skip (if any)
358367 * @group: the broadcast group that will notice the error
@@ -361,7 +370,8 @@ static inline struct sk_buff *genlmsg_new(size_t payload, gfp_t flags)
361370 * This function returns the number of broadcast listeners that have set the
362371 * NETLINK_RECV_NO_ENOBUFS socket option.
363372 */
364- static inline int genl_set_err (struct net * net , u32 portid , u32 group , int code )
373+ static inline int genl_set_err (struct genl_family * family , struct net * net ,
374+ u32 portid , u32 group , int code )
365375{
366376 return netlink_set_err (net -> genl_sock , portid , group , code );
367377}
0 commit comments