batadv_netlink_get_hardif(9)
π
batadv_netlink_get_hardif(9) β from the Kernel API Manual, bestie β¨
okay so bestie, real talk: this function is literally the moment when you need to pull a hard interface out of a netlink callback. yes, that specific vibe. it retrieves hard interface from netlink callback, no cap, and it does it with main character energy ππ«Ά
β¨ SYNOPSIS β¨
struct batadv_hard_iface * batadv_netlink_get_hardif (struct batadv_priv
*bat_priv , struct netlink_callback *cb );
like, look at that signature. it's giving "I know exactly what I'm doing" π
πΈ ARGUMENTS πΈ
bat_privβ the bat priv with all the mesh interface information. yes she contains multitudes, all the mesh deets are in there πcbβ callback structure containing arguments. that's where the callback args live, periodt π¦
π₯ RETURN π₯
- on success β pointer to hard interface, and bestie note the (with increased refcnt) part because refcounts are serious business π
- on error β error pointer. so if things go sideways you get an error pointer, not a cute moment π
π SEE ALSO π
okay so the squad is large, buckle up buttercup π
- 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_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_from_info(9)batadv_get_vlan_from_info(9)batadv_pre_doit(9)batadv_post_doit(9)batadv_netlink_register(9)batadv_netlink_unregister(9)
and that's the whole page bestie, hope it slayed π β¨
shoutout to the source ./net/batman-adv and the date October 2026, and ofc batadv_netlink_get_hardif(9) herself β iconic behavior only π«Άππ
π¦ 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