netlbl_domhsh_remove_af4(9)
π netlbl_domhsh_remove_af4(9) π
okay so bestie, you're reading a page from the Kernel API Manual β yes, that Kernel API Manual, the big serious one β and it's about netlbl_domhsh_remove_af4, which lowkey sounds like a wand spell but is actually a kernel function. let's get into it β¨
β¨ NAME β¨
netlbl_domhsh_remove_af4 β Removes an address selector entry π
like, it takes an address selector OUT. that's the whole job. slay.
πΈ SYNOPSIS πΈ
int netlbl_domhsh_remove_af4 (const char *domain , const struct in_addr
*addr , const struct in_addr *mask , struct netlbl_audit *audit_info );
so it returns an int, and it takes four things. no cap, that's it. π
π¦ ARGUMENTS π¦
domainβ the domain. yep. that's the domain. she's the domain. πaddrβ IPv4 address. the address. the actual one.maskβ IPv4 address mask. the mask that goes with the address, obviously.audit_infoβ NetLabel audit information. all the audit tea gets logged here π
π₯ DESCRIPTION π₯
okay so here's the vibe: this function removes an individual address selector from a domain mapping β and, plot twist, it may also remove the entire mapping if that mapping is empty. yes, she cleans up after herself. main character energy fr fr. π
it returns zero on success, and negative values on failure. that's it, that's the contract. don't come for her about it. π
π SEE ALSO π
first up, the source file itself β the Kernel file ./net/netlabel/netlabel_domainhash.c. go read the source bestie, it's giving transparency. π§
and then the whole friend group, the entire netlbl_domhsh cinematic universe:
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_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)
not me listing all seventeen of them π but every single one is here, iykyk. π«Ά
one thing β this is kernel code, so pls be normal about it. she returns negative values on failure and she may take the whole empty mapping with her. that's not a bug, that's just her process. π
kisses and goodbye from ./net/netlabel, dated October 2026, page netlbl_domhsh_remove_af4(9) β catch you on the flip side 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