Lines Matching full:family
16 #define MODULE_ALIAS_GENL_FAMILY(family) \ argument
17 MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)
26 * @name: name of the multicast group, names are per-family
38 * struct genl_family - generic netlink family
40 * @name: name of family
44 * @netnsok: set to true if the family can handle network
52 * @bind: called when family multicast group is added to a netlink socket
53 * @unbind: called when family multicast group is removed from a netlink socket
55 * @mcgrps: multicast groups used by this family
60 * @ops: the operations supported by this family
61 * @n_ops: number of operations supported by this family
62 * @small_ops: the small-struct operations supported by this family
63 * @n_small_ops: number of small-struct operations supported by this family
72 * can be attached at the family level or at the operation level.
110 /* protocol family identifier */
112 /* starting number of multicast group IDs in this family */
122 * @family: generic netlink family
133 const struct genl_family *family; member
178 * @internal_flags: flags used by the family
199 * @internal_flags: flags used by the family
202 * @policy: netlink policy (takes precedence over family policy)
227 * @internal_flags: flags used by the family
230 * @policy: netlink policy (takes precedence over family policy)
302 * @family: pointer to the genetlink family
309 genl_info_init_ntf(struct genl_info *info, const struct genl_family *family, in genl_info_init_ntf() argument
315 info->family = family; in genl_info_init_ntf()
325 void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk);
326 void *genl_sk_priv_get(struct genl_family *family, struct sock *sk);
327 int genl_register_family(struct genl_family *family);
328 int genl_unregister_family(const struct genl_family *family);
329 void genl_notify(const struct genl_family *family, struct sk_buff *skb,
333 const struct genl_family *family, int flags, u8 cmd);
338 return genlmsg_put(skb, info->snd_portid, info->snd_seq, info->family, in __genlmsg_iput()
377 * @family: genetlink message family
384 const struct genl_family *family, in genlmsg_parse_deprecated() argument
389 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated()
396 * @family: genetlink message family
403 const struct genl_family *family, in genlmsg_parse() argument
408 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
430 * @family: generic netlink family
438 const struct genl_family *family, in genlmsg_put_reply() argument
441 return genlmsg_put(skb, info->snd_portid, info->snd_seq, family, in genlmsg_put_reply()
470 * @family: the generic netlink family
482 genlmsg_multicast_netns_filtered(const struct genl_family *family, in genlmsg_multicast_netns_filtered() argument
488 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genlmsg_multicast_netns_filtered()
490 group = family->mcgrp_offset + group; in genlmsg_multicast_netns_filtered()
497 * @family: the generic netlink family
504 static inline int genlmsg_multicast_netns(const struct genl_family *family, in genlmsg_multicast_netns() argument
508 return genlmsg_multicast_netns_filtered(family, net, skb, portid, in genlmsg_multicast_netns()
514 * @family: the generic netlink family
520 static inline int genlmsg_multicast(const struct genl_family *family, in genlmsg_multicast() argument
524 return genlmsg_multicast_netns(family, &init_net, skb, in genlmsg_multicast()
530 * @family: the generic netlink family
537 int genlmsg_multicast_allns(const struct genl_family *family,
612 * @family: the generic netlink family
622 static inline int genl_set_err(const struct genl_family *family, in genl_set_err() argument
626 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genl_set_err()
628 group = family->mcgrp_offset + group; in genl_set_err()
632 static inline int genl_has_listeners(const struct genl_family *family, in genl_has_listeners() argument
635 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genl_has_listeners()
637 group = family->mcgrp_offset + group; in genl_has_listeners()