batadv_netli...from_ifindex(9)
π NAME π
batadv_netlink_get_meshif_from_ifindex β okay so this is the little guy that gets you the mesh-iface from an ifindex β¨
(this is a section 9 page from the Kernel API Manual, bestie, so yes it's kernel-internal and yes it's iconic)
π SYNOPSIS π
struct net_device * batadv_netlink_get_meshif_from_ifindex (struct net
*net , int ifindex );
πΈ ARGUMENTS πΈ
netβ the applicable net namespace π«Ά like, the whole namespace vibe this lookup lives in.ifindexβ index of the mesh interface π« the number you're handing over so it can find your mesh iface.
π₯ RETURN π₯
Pointer to mesh interface (with increased refcnt) on success π β and an error pointer on error π.
Heads up bestie: on success the refcnt is increased, so don't just toss that pointer in the void. That's an accounting situation, fr fr.
π SEE ALSO π
Kernel file ./net/batman-adv/netlink.c, enum
batadv_netlink_multicast_groups(9)enum batadv_genl_ops_flags(9)batadv_netlink_get_ifindex(9)batadv_netlink_mesh_fill_ap_isolation(9)batadv_netlink_set_mesh_ap_isolation(9)batadv_netlink_mesh_fill(9)batadv_netlink_notify_mesh(9)batadv_netlink_get_mesh(9)batadv_netlink_set_mesh(9)batadv_netlink_tp_meter_put(9)batadv_netlink_tpmeter_notify(9)batadv_netlink_tp_meter_start(9)batadv_netlink_tp_meter_cancel(9)batadv_netlink_hardif_fill(9)batadv_netlink_notify_hardif(9)batadv_netlink_cmd_get_hardif(9)batadv_netlink_set_hardif(9)batadv_netlink_dump_hardif(9)batadv_netlink_vlan_fill(9)batadv_netlink_notify_vlan(9)batadv_netlink_get_vlan(9)batadv_netlink_set_vlan(9)batadv_netlink_get_meshif_from_info(9)batadv_netlink_get_meshif(9)batadv_netlink_get_hardif_from_ifindex(9)batadv_netlink_get_hardif_from_info(9)batadv_netlink_get_hardif(9)batadv_get_vlan_from_info(9)batadv_pre_doit(9)batadv_post_doit(9)batadv_netlink_register(9)batadv_netlink_unregister(9)
That's the whole netlink friend group btw π read them, they ate π
βΏ and that's the page!! βΏ brought to you by the source/version line ./net/batman-adv, dated October 2026 β mwah, go touch some mesh interfaces πππ¦
π¦ 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