netlbl_mgmt_add_common(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– netlbl_mgmt_add_common(9) πŸ’–

okay bestie, so this one's from the Kernel API Manual (yes, the kernel has a manual and yes it's kind of iconic) β€” it's netlbl_mgmt_add_common, and no cap it's the little helper that handles an ADD message. let's get into it 🫢


✨ NAME ✨

netlbl_mgmt_add_common β€” literally just "Handle an ADD message" πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int netlbl_mgmt_add_common (struct genl_info *info , struct netlbl_audit
*audit_info );

like, it takes two things and gives you back an int, that's the whole vibe 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • info β€” the Generic NETLINK info block. that's the message payload situation right there ✨
  • audit_info β€” the NetLabel audit information. receipts for the audit trail, iykyk πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so this is a helper function for the ADD and ADDDEF messages β€” its whole job is taking the domain mappings from the message and adding them into the hash table πŸ—‚οΈ she's a team player fr fr.

for the actual deets on what the message format looks like, go peek at netlabel.h β€” that's where the description lives, not here πŸ™ˆ

returns zero on success, and negative values on failure. that's it, that's the contract πŸ’€


🧚 SEE ALSO 🧚

kernel file ./net/netlabel/netlabel_mgmt.c (the source of truth, lowkey) plus this whole friend group:


and that's the page!! sourced from ./net/netlabel, stamped October 2026, and titled netlbl_mgmt_add_common(9) β€” go forth and add those domain mappings bestie, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from