Changeset View
Changeset View
Standalone View
Standalone View
sys/netlink/netlink_ctl.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
bool netlink_register_proto(int proto, const char *proto_name, nl_handler_f handler); | bool netlink_register_proto(int proto, const char *proto_name, nl_handler_f handler); | ||||
bool netlink_unregister_proto(int proto); | bool netlink_unregister_proto(int proto); | ||||
/* Common helpers */ | /* Common helpers */ | ||||
bool nl_has_listeners(int netlink_family, uint32_t groups_mask); | bool nl_has_listeners(int netlink_family, uint32_t groups_mask); | ||||
bool nlp_has_priv(struct nlpcb *nlp, int priv); | bool nlp_has_priv(struct nlpcb *nlp, int priv); | ||||
struct ucred *nlp_get_cred(struct nlpcb *nlp); | struct ucred *nlp_get_cred(struct nlpcb *nlp); | ||||
bool nlp_unconstrained_vnet(const struct nlpcb *nlp); | |||||
/* netlink_generic.c */ | /* netlink_generic.c */ | ||||
struct genl_cmd { | struct genl_cmd { | ||||
const char *cmd_name; | const char *cmd_name; | ||||
nl_handler_f cmd_cb; | nl_handler_f cmd_cb; | ||||
uint32_t cmd_flags; | uint32_t cmd_flags; | ||||
uint32_t cmd_priv; | uint32_t cmd_priv; | ||||
uint32_t cmd_num; | uint32_t cmd_num; | ||||
Show All 14 Lines |