netlbl_af4list_remove(9)
π netlbl_af4list_remove(9) π
okay so bestie, welcome to the Kernel API Manual π β yes we're in the kernel today, and no it's not scary, i promise. this one's a lil function that just... removes an IPv4 address entry. that's the whole vibe. let's get into it β¨
πΈ NAME πΈ
netlbl_af4list_remove β remove an IPv4 address entry π§Ήπ
β¨ SYNOPSIS β¨
struct netlbl_af4list * netlbl_af4list_remove (__be32 addr , __be32 mask , struct list_head *head );
like, it returns a struct netlbl_af4list *, and it takes three (3) whole arguments. main character function fr fr π
π¦ ARGUMENTS π¦
addrβ the IP address. literally just the IP address, that's it, that's the whole thing π«maskβ the IP address mask. it's the mask that goes with the address, they're a matching set, a duo, an iconic pair π«Άheadβ the list head. this is the head of the list bestie, everything happens through her π
π DESCRIPTION π
so the way that this works is: it removes an IP address entry from the list pointed to by head. simple as that, no cap π
it returns the entry on success β yay π β and NULL on failure π. so like, check your return value, always, i'm begging π
β οΈ the caller is responsible for calling the necessary locking functions. this is not a drill bestie, you gotta do the locking yourself, it's your job not hers, periodt π₯
π SEE ALSO π
the kernel file ./net/netlabel/netlabel_addrlist.c β go read her, she's iconic πβ¨
and then the whole friend group, all of them, no crumbs left:
netlbl_af4list_search(9)netlbl_af4list_search_exact(9)netlbl_af6list_search(9)netlbl_af6list_search_exact(9)netlbl_af4list_add(9)netlbl_af6list_add(9)netlbl_af4list_remove_entry(9)netlbl_af6list_remove_entry(9)netlbl_af6list_remove(9)netlbl_af4list_audit_addr(9)netlbl_af6list_audit_addr(9)
and that's the page!! π this lil angel lives over in ./net/netlabel and the version notes are dated October 2026 β so like, mark your calendars bestie ποΈπ slay, stay locked, and see u in the next one π¦β¨π
π¦ 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