STRUCT DRBD_GENLMSGHDR(9)
πΈ 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
minorshall be(~0), and the attributeDRBD_NLA_CFG_CONTEXTis 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 withflagsβ same memory, different eras, we love a shared living situation π
ngl bestie,flagsandret_codeare 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
- 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