netlbl_unlhsh_search_iface(9)
π netlbl_unlhsh_search_iface(9) β the Kernel API Manual, bestie edition π
okay so this is netlbl_unlhsh_search_iface(9), from the Kernel API Manual β and yes it's a mouthful, we're gonna say it together, no cap π«Ά
β¨ NAME β¨
netlbl_unlhsh_search_iface β literally just: search for a matching interface entry π
π¦ SYNOPSIS π¦
struct netlbl_unlhsh_iface * netlbl_unlhsh_search_iface (int ifindex );
π ARGUMENTS π
ifindexβ the network interface π that's the one you're looking for, that's the whole vibe
πΈ DESCRIPTION πΈ
so bestie, what this does is it searches the unlabeled connection hash table ποΈ and hands you back a pointer to the interface entry that matches ifindex. slay. and if nothing matches? you get NULL back, sorry babe π that's just how it is.
β οΈ okay important, listen up π β the caller is responsible for making sure the hash table is protected, either with a RCU read lock or with the hash table lock. like, that's on you, not on this function. do not skip this step fr fr π
π SEE ALSO π
- Kernel file
./net/netlabel/netlabel_unlabeled.cπ netlbl_unlhsh_free_iface(9)netlbl_unlhsh_hash(9)netlbl_unlhsh_add_addr4(9)netlbl_unlhsh_add_addr6(9)netlbl_unlhsh_add_iface(9)netlbl_unlhsh_add(9)netlbl_unlhsh_remove_addr4(9)netlbl_unlhsh_remove_addr6(9)netlbl_unlhsh_condremove_iface(9)netlbl_unlhsh_remove(9)netlbl_unlhsh_netdev_handler(9)netlbl_unlabel_acceptflg_set(9)netlbl_unlabel_addrinfo_get(9)netlbl_unlabel_accept(9)netlbl_unlabel_list(9)netlbl_unlabel_staticadd(9)netlbl_unlabel_staticadddef(9)netlbl_unlabel_staticremove(9)netlbl_unlabel_staticremovedef(9)netlbl_unlabel_staticlist_gen(9)netlbl_unlabel_staticlist(9)netlbl_unlabel_staticlistdef(9)netlbl_unlabel_genl_init(9)netlbl_unlabel_init(9)netlbl_unlabel_getattr(9)netlbl_unlabel_defconf(9)
okay that's the page!! go read the whole little family of netlbl_unlhsh_* functions, they're all iconic in their own way π and hey β this one shipped from ./net/netlabel, dated October 2026 π so when you cite it, cite it cute. bye 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