netlbl_mgmt_add_common(9)
π 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:
netlbl_mgmt_listentry(9)netlbl_mgmt_add(9)netlbl_mgmt_remove(9)netlbl_mgmt_listall_cb(9)netlbl_mgmt_listall(9)netlbl_mgmt_adddef(9)netlbl_mgmt_removedef(9)netlbl_mgmt_listdef(9)netlbl_mgmt_protocols_cb(9)netlbl_mgmt_protocols(9)netlbl_mgmt_version(9)netlbl_mgmt_genl_init(9)
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
- 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