batadv_netlink_get_meshif(9)
π batadv_netlink_get_meshif β a Kernel API Manual moment
okay so bestie, we're in the batadv_netlink_get_meshif(9) page today and honestly? it's a little icon. short, sweet, does exactly one thing. let's get into it π«Ά
β¨ NAME β¨
batadv_netlink_get_meshif β Retrieve mesh interface from netlink callback π¦
like, that's the whole gig. it retrieves the mesh interface. from a netlink callback. she's focused, she's employed, she's not doing extra π
πΈ SYNOPSIS πΈ
struct net_device * batadv_netlink_get_meshif (struct netlink_callback *cb );
one function, one argument, one return type. minimalism ate fr fr β¨
π ARGUMENTS π
cbβ the callback structure containing arguments. that's it, that's her whole job. she holds the args, you hand her over, everybody moves on π
π RETURN π
so here's the vibe check on what comes back:
- on success β a pointer to the mesh interface, and bestie, important detail: the refcnt is increased. like she comes with a hold on her, you gotta release that later, no cap π
- on error β an error pointer. classic. not NULL, an error pointer, so please check it with the proper helpers, iykyk π
fr fr do not forget about that increased refcnt, that's the main character detail of this whole page π
π SEE ALSO π
the whole netlink friend group showed up for this one, and we are obsessed:
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_ifindex(9)batadv_netlink_get_meshif_from_info(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)
and if you wanna see where the source lives, it's chilling in the kernel file ./net/batman-adv/netlink.c alongside enum. go say hi π§
okay that's the page!! huge thank you to ./net/batman-adv for the source and to October 2026 for the date stamp, you both slayed this drop ππ stay hydrated, check your error pointers, and remember: increased refcnt means increased responsibility. periodt β¨π
π¦ 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