Modules | |
Controller | |
Data Structures | |
struct | genl_cmd |
Generic Netlink Command. More... | |
struct | genl_ops |
Generic Netlink Operations. More... | |
Functions | |
char * | genl_op2name (int family, int op, char *buf, size_t len) |
Register/Unregister | |
int | genl_register (struct nl_cache_ops *ops) |
Register generic netlink operations. More... | |
void | genl_unregister (struct nl_cache_ops *ops) |
Unregister generic netlink operations. More... | |
Resolving ID/Name | |
int | genl_ops_resolve (struct nl_sock *sk, struct genl_ops *ops) |
int | genl_mngt_resolve (struct nl_sock *sk) |
References genl_ctrl_alloc_cache(), nl_cache_free(), nl_list_for_each_entry, and genl_ops::o_list.
char* genl_op2name | ( | int | family, |
int | op, | ||
char * | buf, | ||
size_t | len | ||
) |
References buf, genl_cmd::c_id, genl_cmd::c_name, nl_list_for_each_entry, NULL, genl_ops::o_cmds, genl_ops::o_family, genl_ops::o_list, and genl_ops::o_ncmds.
int genl_register | ( | struct nl_cache_ops * | ops | ) |
Register generic netlink operations.
References nl_cache_ops::co_genl, nl_cache_ops::co_hdrsize, nl_cache_ops::co_msg_parser, nl_cache_ops::co_msgtypes, nl_cache_ops::co_protocol, GENL_HDRSIZE, nl_msgtype::mt_id, nl_msgtype::mt_name, NETLINK_GENERIC, nl_cache_mngt_register(), NLE_INVAL, NLE_PROTO_MISMATCH, NULL, genl_ops::o_cache_ops, genl_ops::o_family, genl_ops::o_list, and genl_ops::o_name.
void genl_unregister | ( | struct nl_cache_ops * | ops | ) |
Unregister generic netlink operations.
References nl_cache_ops::co_genl, nl_cache_mngt_unregister(), and genl_ops::o_list.