libnl
1.1
|
Functions | |
int | genl_ctrl_resolve (struct nl_handle *handle, const char *name) |
Resolve generic netlink family name to its identifier. |
Cache Management | |
struct nl_cache * | genl_ctrl_alloc_cache (struct nl_handle *handle) |
struct genl_family * | genl_ctrl_search (struct nl_cache *cache, int id) |
Look up generic netlink family by id in the provided cache. |
Resolver | |
struct genl_family * | genl_ctrl_search_by_name (struct nl_cache *cache, const char *name) |
Look up generic netlink family by family name in the provided cache. |
|
read |
cache | Generic netlink family cache. |
id | Family identifier. |
Searches through the cache looking for a registered family matching the specified identifier. The caller will own a reference on the returned object which needs to be given back after usage using genl_family_put().
Definition at line 174 of file ctrl.c.
References nl_object_get().
|
read |
cache | Generic netlink family cache. |
name | Family name. |
Searches through the cache looking for a registered family matching the specified name. The caller will own a reference on the returned object which needs to be given back after usage using genl_family_put().
Definition at line 208 of file ctrl.c.
References nl_object_get().
Referenced by genl_ctrl_resolve().
int genl_ctrl_resolve | ( | struct nl_handle * | handle, |
const char * | name | ||
) |
handle | Netlink Handle |
name | Name of generic netlink family |
Resolves the generic netlink family name to its identifer and returns it.
Definition at line 238 of file ctrl.c.
References genl_ctrl_search_by_name(), and nl_cache_free().