netlbl_domhsh_getentry_af4(9)
π netlbl_domhsh_getentry_af4(9) π
okay so bestie, this one lives in the Kernel API Manual and honestly? it's giving "small function, big responsibility." it's the lookup girlie of the domain hash table. let's get into it β¨
πΈ NAME πΈ
netlbl_domhsh_getentry_af4 β grab an entry out of the domain hash table, no cap π«Ά
π SYNOPSIS π
struct netlbl_dommap_def * netlbl_domhsh_getentry_af4 (const char
*domain , __be32 addr );
literally that's the whole signature, take it in π
π¦ ARGUMENTS π¦
domainβ the domain name you're searching for, like the vibe you're looking up πaddrβ the IP address you're searching for. yes, that IP address. the one you want π
π DESCRIPTION π
so the way this works is she goes rummaging through the domain hash table, looking for an entry that matches both domain and addr. if she finds one? she returns a pointer to a copy of that entry. if not? you get NULL, and honestly, we've all been there π
β οΈ bestie listen to me β the caller is responsible for ensuring that rcu_read_[un]lock is called. that's on you, not on her. don't leave her hanging π
β SEE ALSO β
the whole friend group, fr fr β plus where she actually lives in the kernel:
- 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_remove_default(9)netlbl_domhsh_getentry(9)netlbl_domhsh_getentry_af6(9)netlbl_domhsh_walk(9)
and that's the tea β from ./net/netlabel, dated October 2026, page netlbl_domhsh_getentry_af4(9) β mwah, go read some kernel source bestie, i believe in you ππ§ββοΈ
π¦ 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