netlbl_af6list_search_exact(9)
π netlbl_af6list_search_exact β like, the search for an EXACT IPv6 address entry π
okay so bestie, this is a page straight out of the Kernel API Manual (yes, the kernel has a manual, and yes it's kind of iconic), and today's main character is netlbl_af6list_search_exact. no cap, it does exactly one thing and it does it slayfully. let's get into it π«Ά
β¨ NAME β¨
netlbl_af6list_search_exact β Search for an exact IPv6 address entry πΈ
π¦ SYNOPSIS π¦
struct netlbl_af6list * netlbl_af6list_search_exact (const struct
in6_addr *addr , const struct in6_addr *mask , struct list_head *head );
like, that's the whole signature, copy-pasted with love π
π ARGUMENTS π
addrβ the IPv6 address, the literal address of the situation πmaskβ the IPv6 address mask, its ride-or-die πheadβ the list head, aka where the whole list starts, the main character energy of the data structure π
π DESCRIPTION π
so basically it searches the IPv6 address list given by head. π if an exact match is found, it gets returned β like, "here's your entry, bestie" π β otherwise NULL is returned, which is the kernel's way of saying "sorry babe, nothing here" π.
β οΈ real talk though: the caller is responsible for calling the rcu_read_[un]lock functions. that's on YOU, not on this function. do not skip it, fr fr, the RCU lock is not a vibe you can just ignore π
π SEE ALSO π
- Kernel file
./net/netlabel/netlabel_addrlist.c netlbl_af4list_search(9)netlbl_af4list_search_exact(9)netlbl_af6list_search(9)netlbl_af4list_add(9)netlbl_af6list_add(9)netlbl_af4list_remove_entry(9)netlbl_af4list_remove(9)netlbl_af6list_remove_entry(9)netlbl_af6list_remove(9)netlbl_af4list_audit_addr(9)netlbl_af6list_audit_addr(9)
like, the whole friend group, honestly π«Άβ¨
aaaand that's the page!! this one's brought to you by ./net/netlabel, version-dated October 2026 β so like, future vibes but make it kernel π¦π slay, go implement responsibly, 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