batadv_netl...if_from_info(9)
π
batadv_netl...if_from_info(9) β the Kernel API Manual girlies said "get that hard-iface" β¨
okay so bestie, welcome to batadv_netl...if_from_info(9), straight out of the Kernel API Manual. the full name of the function is batadv_netlink_get_hardif_from_info β which is giving "long name, very important job" and honestly? icon. π
β¨ NAME β¨
batadv_netlink_get_hardif_from_info β grab yourself a hard-iface out of genl attributes. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
struct batadv_hard_iface * batadv_netlink_get_hardif_from_info (struct
batadv_priv *bat_priv , struct net *net , struct genl_info *info );
look at that signature. struct batadv_hard_iface * on the return, three args going in. it's giving "I take this very seriously actually". π
π ARGUMENTS π
bat_privβ the bat priv, aka the one holding all the mesh interface information. main character data structure fr. πnetβ the applicable net namespace. know which namespace you're in, bestie, it matters. πinfoβ the receiver information. yes it's literally the genl info, ty for asking. π«Ά
π₯ RETURN π₯
pointer to the hard interface on success β and not just any pointer, a pointer with increased refcnt, okay so please remember that and don't leak it π
on error? you get an error pointer. no cap, that's it. π
π SEE ALSO π
okay this list is long and honestly every single one of these deserves its own moment, so here we go, no skipping, nobody left behind π§
- Kernel file
./net/batman-adv/netlink.cβ and also theenumin there batadv_netlink_multicast_groups(9)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_meshif(9)batadv_netlink_get_hardif_from_ifindex(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 netlink family reunion and we're all invited π
okay that's the whole page bestie!! this one lives at ./net/batman-adv, dated October 2026, and it's the batadv_netl...if_from_info(9) entry from the Kernel API Manual. go forth and get your hardif (with increased refcnt!!) π
β¨π¦
π¦ 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