genl_register_family(9)
π genl_register_family(9) β register a generic netlink family
okay so welcome to the Kernel API Manual, bestie π
this is the page for genl_register_family, and it's literally the function that registers a generic netlink family. group-chat summary: it validates the family first, then registers it. slay.
πΈ NAME πΈ
genl_register_family β register a generic netlink family β¨
π SYNOPSIS π
int genl_register_family (struct genl_family *family );
π¦ ARGUMENTS π¦
familyβ the generic netlink family π that's the whole vibe of this argument, no cap.
π DESCRIPTION π
So the way this works is: genl_register_family registers the specified family after validating it first. validation first, registration second β main character energy, honestly.
β οΈ Only one family may be registered with the same family name or identifier. that's the rule, bestie, and it is not flexible. one name, one identifier, periodt. π
The family's ops, multicast groups, and module pointer must already be assigned. like, all set up before this function does its thing β don't come in with those missing, fr fr.
Return 0 on success or a negative error code. that's it. iconic. π
π₯ SEE ALSO π₯
Kernel file ./net/netlink/genetlink.c β plus these absolute legends:
cute little sign-off from the very bottom of the page: source/version is ./net/netlink, date is October 2026, and this whole manual page is genl_register_family(9) π«Άβ¨π
π¦ 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