netlbl_domhsh_search(9)
β¨ netlbl_domhsh_search β bestie's guide to the kernel API manual edition β¨
okay so this is netlbl_domhsh_search(9) from the Kernel API Manual, and honestly? it's giving "tiny function, big responsibility" π
let's get into it.
πΈ NAME πΈ
netlbl_domhsh_search β literally just: search for a domain entry. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
struct netlbl_dom_map * netlbl_domhsh_search (const char *domain , u16
family );
like, you hand it a domain and a family and it hands you back a pointer. no cap. β¨
π ARGUMENTS π
domainβ the domain, bestie. the actual domain string you're looking for. πfamilyβ the address family. yes it matters, keep reading π
π DESCRIPTION π
so what does it do? it searches the domain hash table, and if it finds the entry it returns a pointer to that hash table entry. if it doesn't find anything? NULL. that's it. no drama, just NULL. π
and here's the cute part: family can be AF_UNSPEC, which is the "idgaf" option β it matches entries from any address family. icon behavior honestly. π
β οΈ okay but fr fr, listen: the caller is responsible for making sure the hash table is protected β either with a RCU read lock or with the hash table lock. that's on you, not on this function. no skipping this step, bestie, i'm serious π
π«Ά SEE ALSO π«Ά
- Kernel file
./net/netlabel/netlabel_domainhash.cπ netlbl_domhsh_free_entry(9),netlbl_domhsh_hash(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_af4(9),netlbl_domhsh_getentry_af6(9),netlbl_domhsh_walk(9)
the whole friend group, honestly. go say hi π¦
mwah π that's a wrap! this page lives in ./net/netlabel, dated October 2026, and it's literally called netlbl_domhsh_search(9) β go forth and search those domains, bestie π
β¨
π¦ 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