batadv_mcast..._get_primary(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so real talk, this is a page from the Kernel API Manual (section 9), and bestie, it's a whole little function that pulls the primary interface out of a netlink callback. tiny page, big batman-adv energy. let's get into it ✨


🌸 NAME 🌸

batadv_mcast_netlink_get_primary β€” get primary interface from netlink callback. that's it, that's the whole job, and it does it slayfully πŸ’–


⭐ SYNOPSIS ⭐

int batadv_mcast_netlink_get_primary (struct netlink_callback *cb ,
struct batadv_hard_iface **primary_if );

look at that signature. two args, one return, no cap πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • cb β€” the netlink callback structure. that's the thing you're digging through πŸ‘‘
  • primary_if β€” the primary interface pointer where the result gets dropped off. it's an out-param, so the function writes the answer in here, it doesn't hand it back directly πŸ™ˆ

πŸ’€ RETURN πŸ’€

0 or an error code. that's the vibe check: zero means we're good, anything else means something went sideways 😭


🧚 SEE ALSO 🧚

okay this is the part where the manpage flexes its entire friend group. literally the whole multicast.c cast, all in one list. not me reading all of these out loud πŸ’…

iykyk 🫢


ngl the "get" in this name is doing exactly what it says β€” it gets you the primary interface pointer. no plot twist, no hidden behaviour, just vibes and a return code πŸ’œ

and that's the whole page, bestie!! 🌈 this cutie lives over in ./net/batman-adv and the manual's dated October 2026 β€” so yeah, a little time-travel moment for you, go off β³πŸ’… mwah, see you in the next one πŸŽ€βœ¨

πŸ“¦ where this page comes from