netlbl_domhsh_remove_af4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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