netlbl_domhsh_remove_entry(9)
π netlbl_domhsh_remove_entry β the Kernel API Manual, bestie edition
okay so welcome to netlbl_domhsh_remove_entry(9), the kernel API manual page you didn't know you needed in your life. it's giving "one small function, huge responsibilities" and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
netlbl_domhsh_remove_entry β removes a given entry from the domain table. that's it, that's the whole vibe. bye bye entry π
πΈ SYNOPSIS πΈ
int netlbl_domhsh_remove_entry (struct netlbl_dom_map *entry , struct
netlbl_audit *audit_info );
it returns an int, it takes two pointers, and yes the line break mid-signature is just how the manpage dresses itself. slay π
π ARGUMENTS π
entryβ the entry to remove. literally the main character of this whole operation. it's the thing getting yeeted from the domain table.audit_infoβ NetLabel audit information. the receipts, basically. it's the audit stuff that tags along for the ride so the grown-ups can keep track π
π DESCRIPTION π
so what does it actually do? bestie, it removes an entry from the domain hash table β¨ and β this is the part people forget β it handles any updates to the lower level protocol handler (i.e. CIPSO). yes, CIPSO. it's not just deleting; it's doing the follow-up admin too. multi-tasking queen behavior π
π¨ IMPORTANT CAVEAT, NO CAP: the caller is responsible for ensuring that the RCU read lock is held. like, that's on you, not on the function. do not come for this function if you didn't hold the lock. the function is not the problem. π
and the return values? cute and simple:
- returns zero on success π
- returns negative on failure π
periodt. no in-between, no gray area. it ate and left no crumbs.
π¦ SEE ALSO π¦
the whole friend group shows up here, and honestly we love a supportive cast:
- Kernel file
./net/netlabel/netlabel_domainhash.cβ the source, go read it, iykyk π netlbl_domhsh_free_entry(9)netlbl_domhsh_hash(9)netlbl_domhsh_search(9)netlbl_domhsh_search_def(9)netlbl_domhsh_audit_add(9)netlbl_domhsh_validate(9)netlbl_domhsh_init(9)netlbl_domhsh_add(9)netlbl_domhsh_add_default(9)netlbl_domhsh_remove_af4(9)netlbl_domhsh_remove_af6(9)netlbl_domhsh_remove(9)netlbl_domhsh_remove_default(9)netlbl_domhsh_getentry(9)netlbl_domhsh_getentry_af4(9)netlbl_domhsh_getentry_af6(9)netlbl_domhsh_walk(9)
like, the entire netlbl_domhsh_* family reunion π go say hi to all of them.
β sign-off β
and that's the page!! source lives at ./net/netlabel, dated October 2026, and it's the netlbl_domhsh_remove_entry(9) kernel API manual β go hold that RCU read lock, bestie, and stay slay ππ§ββοΈ
π¦ 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