STRUCT GENL_SMALL_OPS(9)
β¨ struct genl_small_ops π
okay so bestie, welcome to the Kernel API Manual entry for struct genl_small_ops β generic netlink operations, but make it small. like, the travel-size version. π
πΈ NAME πΈ
struct genl_small_ops β generic netlink operations (small version). it's giving "genl_ops but on a budget" and honestly? we stan a space-saving icon. β¨
π¦ SYNOPSIS π¦
struct genl_small_ops {
int (*doit)(struct sk_buff *skb, struct genl_info *info);
int (*dumpit)(struct sk_buff *skb, struct netlink_callback *cb);
u8 cmd;
u8 internal_flags;
u8 flags;
u8 validate;
};
like look at her. six fields. zero bloat. main character energy fr fr. π
π Members π
doitβ the standard command callback. your everyday "do the thing" function, no cap. π₯dumpitβ the callback for dumpers. yeah, the dumping squad gets their own hook. πcmdβ the command identifier. it's au8, so keep it cute and small. πinternal_flagsβ flags used by the family. the family's own little private business, iykyk. πflagsβ theGENL_*flags (specificallyGENL_ADMIN_PERMorGENL_UNS_ADMIN_PERM). permission vibes only. πvalidateβ validation flags fromenum genl_validate_flags. she checks things. she validates. we love a responsible queen. β¨
π Description π
so like, this is a cut-down version of struct genl_ops β for the users who literally don't need most of the ancillary infra and just want to save space. π«Ά
that's it. that's the whole pitch. less stuff, smaller struct, same genl energy. periodt. π
β SEE ALSO β
Kernel file ./include/net/genetlink.h plus this whole friend group:
struct genl_multicast_group(9)struct genl_family(9)struct genl_info(9)struct genl_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 group chat, bestie. go say hi. π¦
mwah π this lil page lives in ./include/net, dated October 2026, and the manual page tag is struct genl_small_ops(9) β catch you in the next manpage, love u, bye!! π«Άβ¨
π¦ 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