STRUCT DRBD_GENLMSGHDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the struct drbd_genlmsghdr(9) page β€” and yes, this is the Kernel API Manual, we're literally in the kernel docs rn, very main character of us πŸ’…

struct drbd_genlmsghdr β€” it's the DRBD specific header that gets used in NETLINK_GENERIC requests. that's the whole vibe. it's the little label your messages wear so everyone knows what's up πŸŽ€


✨ SYNOPSIS ✨

struct drbd_genlmsghdr {
    __u32 minor;
    union {
      __u32 flags;
      __s32 ret_code;
    };
 };

like, look at her. tiny struct, big energy ✨


πŸ¦‹ Members πŸ¦‹

  • minor β€” the device-number bestie. the way it works depends on who's talking, so let's break it down:
    • for admin requests (user -> kernel): it says which minor device to operate on.
    • for (unicast) replies or informational (broadcast) messages (kernel -> user): it says which minor device the information is about.
    • and if we're not operating on minors at all, but on connections or resources instead? then minor shall be (~0), and the attribute DRBD_NLA_CFG_CONTEXT is used instead. okay? okay 🫢
  • {unnamed_union} β€” anonymous. that's it, that's the whole description. she's mysterious, she's unnamed, she's iconic πŸ™ˆ
  • flags β€” possible operation modifiers, and lowkey these are only relevant for user->kernel btw: DRBD_GENL_F_SET_DEFAULTS πŸ”₯
  • ret_code β€” the kernel->userland unicast cfg reply return code. and yes, she's in a union with flags β€” same memory, different eras, we love a shared living situation πŸ’€
ngl bestie, flags and ret_code are union buddies, so they're sharing the same space. only one of them is living there at a time. no cap.

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./include/uapi/linux/drbd.h πŸ‘‘

and that's the page, fr fr 🌈 go read the header file, it's right there, she's been waiting for you πŸ“

mwah πŸ’– that was struct drbd_genlmsghdr(9) from the kernel source tree, at ./include/uapi/linux, dated October 2026 β€” catch you in the next manpage, bestie πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from