batadv_prima...get_selected(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_primary_if_get_selected πŸ’–

okay so bestie, welcome to the batadv_primary_if_get_selected(9) page β€” that's the kernel API manual, section 9, and it's literally all about grabbing yourself a reference to the primary interface πŸ¦‹


✨ NAME ✨

batadv_primary_if_get_selected β€” Get reference to primary interface πŸ‘‘

🌸 SYNOPSIS 🌸

struct batadv_hard_iface * batadv_primary_if_get_selected (struct
batadv_priv *bat_priv );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information. yep, that's the one, it's giving "everything you need lives in here" πŸ’…

⭐ RETURN ⭐

So what do you get back? The primary interface β€” with increased refcnt, periodt πŸ”₯ β€” otherwise NULL. That's it, no cap.

🫢 heads up: increased refcnt means you're holding a reference, so don't just walk away from it, bestie.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/batman-adv/hard-interface.h enum β€” and the whole friend group:


and that's the whole vibe check πŸ’œ this one lives in ./net/batman-adv, dated October 2026, and it's the batadv_prima...get_selected(9) page from the Kernel API Manual β€” k byeee, go get that primary interface πŸ§šπŸ’–

πŸ“¦ where this page comes from