netlbl_af4list_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ’œ


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