batadv_netl...if_from_info(9)
π batadv_netlink_get_meshif_from_info β like, the whole page
okay so bestie, we're in the Kernel API Manual today and honestly? This one's a little baddie. It's the batadv_netlink_get_meshif_from_info page and it does exactly one thing but it does it iconically.
π NAME π
batadv_netlink_get_meshif_from_info β Get mesh-iface from genl attributes β¨
(yeah that's it. that's the whole job. and she ate.)
πΈ SYNOPSIS πΈ
struct net_device * batadv_netlink_get_meshif_from_info (struct net *net
, struct genl_info *info );
literally just: you hand her a net and an info, she hands you back a struct net_device *. no drama. π
π¦ ARGUMENTS π¦
netβ the applicable net namespace π«Ά (like, which world are we living in rn)infoβ receiver information π¬ (the genl attributes, the lore, the context)
π RETURN π
Pointer to mesh interface (with increased refcnt) on success, error pointer on error.
β οΈ okay important bestie: on success you get a refcnt bump, so likeβ¦ that reference is yours to hold. don't just leave it lying around, that's not the vibe. and on error you get an error pointer β check it with IS_ERR()-style thinking, don't dereference it, that would be so embarrassing for everyone involved π
π₯ SEE ALSO π₯
Kernel file ./net/batman-adv/netlink.c plus enum batadv_netlink_multicast_groups(9), enum batadv_genl_ops_flags(9) β and honestly the whole friend group, we're listing them all because everyone deserves their moment:
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(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)
like, the whole batman-adv netlink clique fr fr π§π
mwah π that's the page! source: ./net/batman-adv, dated October 2026 β go off, king, see you in the kernel tree πβπ
π¦ 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