STRUCT GENL_OPS(9)
π struct genl_ops(9) π
okay so welcome to the Kernel API Manual page for struct genl_ops β the generic netlink operations struct β and honestly itβs giving backstage-pass-to-netlink-callbacks energy. no cap, every member matters here. π«Ά
πΈ NAME πΈ
struct genl_ops β generic netlink operations β¨
π SYNOPSIS π
struct genl_ops {
int (*doit)(struct sk_buff *skb, struct genl_info *info);
int (*start)(struct netlink_callback *cb);
int (*dumpit)(struct sk_buff *skb, struct netlink_callback *cb);
int (*done)(struct netlink_callback *cb);
const struct nla_policy *policy;
unsigned int maxattr;
u8 cmd;
u8 internal_flags;
u8 flags;
u8 validate;
};
π Members π
hereβs the whole cast, bestie β no skips, no βIβll read it laterβ behavior. π
doitβ standard command callback π«startβ start callback for dumps πdumpitβ callback for dumpers π€doneβ completion callback for dumps βpolicyβ netlink policy (takes precedence over family policy) πmaxattrβ maximum number of attributes supported π’cmdβ command identifier π·οΈinternal_flagsβ flags used by the family π©flagsβGENL_*flags (GENL_ADMIN_PERMorGENL_UNS_ADMIN_PERM) π‘οΈvalidateβ validation flags fromenum genl_validate_flagsπ§ͺ
π¦ SEE ALSO π¦
Kernel file: ./include/net/genetlink.h β go read it, bestie. then vibe with the whole crew:
struct genl_multicast_group(9)struct genl_family(9)struct genl_info(9)struct genl_small_ops(9)struct genl_split_ops(9)struct genl_dumpit_info(9)genl_info_init_ntf(9)genlmsg_iput(9)genlmsg_nlhdr(9)genlmsg_parse_deprecated(9)genlmsg_parse(9)genl_dump_check_consistent(9)genlmsg_put_reply(9)genlmsg_end(9)genlmsg_cancel(9)genlmsg_multicast_netns_filtered(9)genlmsg_multicast_netns(9)genlmsg_multicast(9)genlmsg_multicast_allns(9)genlmsg_unicast(9)genlmsg_reply(9)genlmsg_data(9)genlmsg_len(9)genlmsg_msg_size(9)genlmsg_total_size(9)genlmsg_new(9)genl_set_err(9)
thatβs the whole page, bestie π«Ά source: ./include/net Β· date: October 2026 Β· page: struct genl_ops(9) in the Kernel API Manual β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms