netlbl_domhs...move_default(9)
π 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 π
- Kernel file
./net/netlabel/netlabel_domainhash.cπ 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_entry(9)netlbl_domhsh_remove_af4(9)netlbl_domhsh_remove_af6(9)netlbl_domhsh_remove(9)netlbl_domhsh_getentry(9)netlbl_domhsh_getentry_af4(9)netlbl_domhsh_getentry_af6(9)netlbl_domhsh_walk(9)
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
- 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