Lines Matching refs:family
23 #include <netlink/genl/family.h>
58 struct genl_family *family;
62 family = genl_family_alloc();
63 if (family == NULL) {
78 family->ce_msgtype = info->nlh->nlmsg_type;
79 genl_family_set_id(family,
81 genl_family_set_name(family,
86 genl_family_set_version(family, version);
91 genl_family_set_hdrsize(family, hdrsize);
96 genl_family_set_maxattr(family, maxattr);
123 err = genl_family_add_op(family, id, flags);
130 err = pp->pp_cb((struct nl_object *) family, pp);
132 genl_family_put(family);
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;
231 family = genl_ctrl_search_by_name(cache, name);
232 if (family == NULL) {
237 err = genl_family_get_id(family);
238 genl_family_put(family);
283 .co_name = "genl/family",