netlbl_domhs...move_default(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netlbl_domhsh_remove_default β€” Kernel API Manual ✨

okay so bestie, we're in the Kernel API Manual today and this one is a lil' function from the NetLabel domain hash table corner of the kernel 🌈. It's called netlbl_domhsh_remove_default, and honestly? it does exactly what it says on the tin β€” it removes the default entry from the table πŸŽ€. Iconic, no notes.


✨ NAME ✨

netlbl_domhsh_remove_default β€” Removes the default entry from the table 🫢


🌸 SYNOPSIS 🌸

int netlbl_domhsh_remove_default (u16 family , struct netlbl_audit
*audit_info );

literally that's the whole signature, bestie β€” an int coming back at you, a u16 family, and a pointer to your struct netlbl_audit info πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • family β€” the address family 🧚 (yep, that's the one β€” the address family)
  • audit_info β€” the NetLabel audit information πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

So here's the vibe 🌸: this function removes/resets the default entry corresponding to family from the domain hash table, and it also handles any updates to the lower level protocol handler (i.e. CIPSO) πŸ”₯. Like, it doesn't just yeet the entry and dip β€” it's responsible and does the follow-up too. main character energy honestly πŸ‘‘.

And family? It can be AF_UNSPEC ✨ β€” and when it is, that removes all address family entries. not a single one, ALL of them. so be normal about it πŸ’….

It returns zero on success, negative on failure 😭. That's the whole return contract, fr fr.


πŸŽ€ SEE ALSO πŸŽ€

like, the whole domhsh friend group came out for this one 😭🫢


that's the whole page, bestie β€” go read the source and slay πŸ’…βœ¨

this lil' page lives in ./net/netlabel, dated October 2026, and it's the netlbl_domhs...move_default(9) entry πŸ’– bye bye, ily, drink some water πŸ“πŸ§š

πŸ“¦ where this page comes from