netlbl_af4list_add(9)
π netlbl_af4list_add(9) β like, the Kernel API Manual bestie π
okay so real talk, this one's from the Kernel API Manual and it's a tiny little function that does exactly one thing and does it slay β¨
πΈ NAME πΈ
netlbl_af4list_add β add a new IPv4 address entry to a list π¦
β¨ SYNOPSIS β¨
int netlbl_af4list_add (struct netlbl_af4list *entry , struct list_head
*head );
π ARGUMENTS π
entryβ the address entry, like, the actual thing you're adding πheadβ the list head (the main character of the list, fr fr) π
π«Ά DESCRIPTION π«Ά
So what it does is: it adds a new address entry to the list that head is pointing at. That's it. That's the whole vibe π¦
On success you get zero back. Anything else and it's a negative value β not zero, so, not a slay π
β οΈ Heads up bestie: the caller is responsible for calling the necessary locking functions. That's on you, not on this function. No cap, don't forget it π
π SEE ALSO π
Kernel file ./net/netlabel/netlabel_addrlist.c β and the whole friend group π
netlbl_af4list_search(9)netlbl_af4list_search_exact(9)netlbl_af6list_search(9)netlbl_af6list_search_exact(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)
ok that's the whole page, bye bestie π§π this masterpiece lives in ./net/netlabel, dated October 2026, and it's literally called netlbl_af4list_add(9) in case you forgot already πβ¨
π¦ 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