STRUCT GENL_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_PERM or GENL_UNS_ADMIN_PERM) πŸ›‘οΈ
  • validate β€” validation flags from enum genl_validate_flags πŸ§ͺ

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/net/genetlink.h β€” go read it, bestie. then vibe with the whole crew:


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