batadv_prima...get_selected(9)
π 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:
batadv_hard_if_state(9)batadv_hard_if_bcast(9)batadv_hardif_put(9)batadv_is_cfg80211(9)batadv_is_wifi(9)
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
- 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