Lines Matching full:family

23 #include <netlink/genl/family.h>
58 struct genl_family *family; in ctrl_msg_parser() local
62 family = genl_family_alloc(); in ctrl_msg_parser()
63 if (family == NULL) { in ctrl_msg_parser()
78 family->ce_msgtype = info->nlh->nlmsg_type; in ctrl_msg_parser()
79 genl_family_set_id(family, in ctrl_msg_parser()
81 genl_family_set_name(family, in ctrl_msg_parser()
86 genl_family_set_version(family, version); in ctrl_msg_parser()
91 genl_family_set_hdrsize(family, hdrsize); in ctrl_msg_parser()
96 genl_family_set_maxattr(family, maxattr); in ctrl_msg_parser()
123 err = genl_family_add_op(family, id, flags); in ctrl_msg_parser()
130 err = pp->pp_cb((struct nl_object *) family, pp); in ctrl_msg_parser()
132 genl_family_put(family); in ctrl_msg_parser()
147 * Look up generic netlink family by id in the provided cache.
148 * @arg cache Generic netlink family cache.
149 * @arg id Family identifier.
151 * Searches through the cache looking for a registered family
156 * @return Generic netlink family object or NULL if no match was found.
181 * Look up generic netlink family by family name in the provided cache.
182 * @arg cache Generic netlink family cache.
183 * @arg name Family name.
185 * Searches through the cache looking for a registered family
190 * @return Generic netlink family object or NULL if no match was found.
213 * Resolve generic netlink family name to its identifier
215 * @arg name Name of generic netlink family
217 * Resolves the generic netlink family name to its identifer and returns
225 struct genl_family *family; in genl_ctrl_resolve() local
231 family = genl_ctrl_search_by_name(cache, name); in genl_ctrl_resolve()
232 if (family == NULL) { in genl_ctrl_resolve()
237 err = genl_family_get_id(family); in genl_ctrl_resolve()
238 genl_family_put(family); in genl_ctrl_resolve()
283 .co_name = "genl/family",