Lines Matching refs:family

18  * @name: name of the multicast group, names are per-family
30 * struct genl_family - generic netlink family
32 * @name: name of family
36 * @netnsok: set to true if the family can handle network
44 * @bind: called when family multicast group is added to a netlink socket
45 * @unbind: called when family multicast group is removed from a netlink socket
47 * @mcgrps: multicast groups used by this family
52 * @ops: the operations supported by this family
53 * @n_ops: number of operations supported by this family
54 * @small_ops: the small-struct operations supported by this family
55 * @n_small_ops: number of small-struct operations supported by this family
64 * can be attached at the family level or at the operation level.
102 /* protocol family identifier */
104 /* starting number of multicast group IDs in this family */
114 * @family: generic netlink family
125 const struct genl_family *family;
170 * @internal_flags: flags used by the family
191 * @internal_flags: flags used by the family
194 * @policy: netlink policy (takes precedence over family policy)
219 * @internal_flags: flags used by the family
222 * @policy: netlink policy (takes precedence over family policy)
294 * @family: pointer to the genetlink family
301 genl_info_init_ntf(struct genl_info *info, const struct genl_family *family,
307 info->family = family;
317 void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk);
318 void *genl_sk_priv_get(struct genl_family *family, struct sock *sk);
319 int genl_register_family(struct genl_family *family);
320 int genl_unregister_family(const struct genl_family *family);
321 void genl_notify(const struct genl_family *family, struct sk_buff *skb,
325 const struct genl_family *family, int flags, u8 cmd);
330 return genlmsg_put(skb, info->snd_portid, info->snd_seq, info->family,
369 * @family: genetlink message family
376 const struct genl_family *family,
381 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype,
388 * @family: genetlink message family
395 const struct genl_family *family,
400 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype,
422 * @family: generic netlink family
430 const struct genl_family *family,
433 return genlmsg_put(skb, info->snd_portid, info->snd_seq, family,
462 * @family: the generic netlink family
474 genlmsg_multicast_netns_filtered(const struct genl_family *family,
480 if (WARN_ON_ONCE(group >= family->n_mcgrps))
482 group = family->mcgrp_offset + group;
489 * @family: the generic netlink family
496 static inline int genlmsg_multicast_netns(const struct genl_family *family,
500 return genlmsg_multicast_netns_filtered(family, net, skb, portid,
506 * @family: the generic netlink family
512 static inline int genlmsg_multicast(const struct genl_family *family,
516 return genlmsg_multicast_netns(family, &init_net, skb,
522 * @family: the generic netlink family
530 int genlmsg_multicast_allns(const struct genl_family *family,
605 * @family: the generic netlink family
615 static inline int genl_set_err(const struct genl_family *family,
619 if (WARN_ON_ONCE(group >= family->n_mcgrps))
621 group = family->mcgrp_offset + group;
625 static inline int genl_has_listeners(const struct genl_family *family,
628 if (WARN_ON_ONCE(group >= family->n_mcgrps))
630 group = family->mcgrp_offset + group;