netlbl_domhsh_remove_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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