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
127 * @ctx: storage space for the use by the family
134 const struct genl_family *family; member
182 * @internal_flags: flags used by the family
203 * @internal_flags: flags used by the family
206 * @policy: netlink policy (takes precedence over family policy)
231 * @internal_flags: flags used by the family
234 * @policy: netlink policy (takes precedence over family policy)
306 * @family: pointer to the genetlink family
313 genl_info_init_ntf(struct genl_info *info, const struct genl_family *family, in genl_info_init_ntf() argument
319 info->family = family; in genl_info_init_ntf()
329 void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk);
330 void *genl_sk_priv_get(struct genl_family *family, struct sock *sk);
331 int genl_register_family(struct genl_family *family);
332 int genl_unregister_family(const struct genl_family *family);
333 void genl_notify(const struct genl_family *family, struct sk_buff *skb,
337 const struct genl_family *family, int flags, u8 cmd);
342 return genlmsg_put(skb, info->snd_portid, info->snd_seq, info->family, in __genlmsg_iput()
381 * @family: genetlink message family
388 const struct genl_family *family, in genlmsg_parse_deprecated() argument
393 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated()
400 * @family: genetlink message family
407 const struct genl_family *family, in genlmsg_parse() argument
412 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
434 * @family: generic netlink family
442 const struct genl_family *family, in genlmsg_put_reply() argument
445 return genlmsg_put(skb, info->snd_portid, info->snd_seq, family, in genlmsg_put_reply()
474 * @family: the generic netlink family
486 genlmsg_multicast_netns_filtered(const struct genl_family *family, in genlmsg_multicast_netns_filtered() argument
492 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genlmsg_multicast_netns_filtered()
494 group = family->mcgrp_offset + group; in genlmsg_multicast_netns_filtered()
501 * @family: the generic netlink family
508 static inline int genlmsg_multicast_netns(const struct genl_family *family, in genlmsg_multicast_netns() argument
512 return genlmsg_multicast_netns_filtered(family, net, skb, portid, in genlmsg_multicast_netns()
518 * @family: the generic netlink family
524 static inline int genlmsg_multicast(const struct genl_family *family, in genlmsg_multicast() argument
528 return genlmsg_multicast_netns(family, &init_net, skb, in genlmsg_multicast()
534 * @family: the generic netlink family
541 int genlmsg_multicast_allns(const struct genl_family *family,
616 * @family: the generic netlink family
626 static inline int genl_set_err(const struct genl_family *family, in genl_set_err() argument
630 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genl_set_err()
632 group = family->mcgrp_offset + group; in genl_set_err()
636 static inline int genl_has_listeners(const struct genl_family *family, in genl_has_listeners() argument
639 if (WARN_ON_ONCE(group >= family->n_mcgrps)) in genl_has_listeners()
641 group = family->mcgrp_offset + group; in genl_has_listeners()