STRUCT GENL_SMALL_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a u8, so keep it cute and small. πŸŽ€
  • internal_flags β€” flags used by the family. the family's own little private business, iykyk. πŸ™ˆ
  • flags β€” the GENL_* flags (specifically GENL_ADMIN_PERM or GENL_UNS_ADMIN_PERM). permission vibes only. πŸ”
  • validate β€” validation flags from enum 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:

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