batadv_hardif_get_by_netdev(9)
πΈ batadv_hardif_get_by_netdev(9) πΈ
okay so real talk bestie, this is a page straight out of the Kernel API Manual, and it's all about batadv_hardif_get_by_netdev β one tiny function with main character energy. let's get into it π
β¨ NAME β¨
batadv_hardif_get_by_netdev β bestie, it literally gets you the hard interface object of a net_device. that's the whole job. no cap. π¦
π SYNOPSIS π
struct batadv_hard_iface * batadv_hardif_get_by_netdev (struct
net_device *net_dev );
like, look at her. iconic signature. π₯
π ARGUMENTS π
net_devβ thenet_deviceyou're searching for. that's the one. hand it over and let the function cook π
π RETURN π
it hands you back the batadv_hard_iface of net_dev β and yes, with increased refcnt β so don't forget that, because the reference count went up and that's on you to deal with π«Ά
and on errors? you get NULL. that's it. NULL. no drama, just nothing. π
π SEE ALSO π
okay this list is long and honestly it ate, so buckle up β here's the whole squad, no skipping, fr fr:
batadv_hardif_release(9)batadv_getlink_net(9)batadv_mutual_parents(9)batadv_is_on_batman_iface(9)batadv_is_valid_iface(9)__batadv_get_real_netdev(9)batadv_get_real_netdev(9)batadv_is_wext_netdev(9)batadv_is_cfg80211_netdev(9)batadv_wifi_flags_evaluate(9)batadv_netdev_get_wifi_flags(9)batadv_hardif_get_wifi_flags(9)batadv_is_wifi_hardif(9)batadv_hardif_no_broadcast(9)batadv_hardif_get_active(9)batadv_primary_if_update_addr(9)batadv_primary_if_select(9)batadv_hardif_is_iface_up(9)batadv_check_known_mac_addr(9)batadv_hardif_recalc_extra_skbroom(9)batadv_hardif_min_mtu(9)batadv_update_min_mtu(9)batadv_hardif_activate_interface(9)batadv_hardif_deactivate_interface(9)batadv_hardif_enable_interface(9)batadv_hardif_disable_interface(9)batadv_hard_if_event_meshif(9)batadv_wifi_net_device_insert(9)batadv_wifi_net_device_remove(9)batadv_wifi_net_device_update(9)batadv_wifi_net_device_unregister(9)batadv_wifi_net_device_event(9)batadv_hard_if_event(9)batadv_wifi_net_devices_init(9)batadv_wifi_net_devices_deinit(9)
and where does she even live? in the kernel file ./net/batman-adv/hard-interface.c β that's her home address, iykyk π§
tiny reminder bestie: that refcnt goes up, so pair this with batadv_hardif_release(9) or you'll be leaking refs and that's not the vibe π
k bye ily, this page came from ./net/batman-adv, dated October 2026, and it's batadv_hardif_get_by_netdev(9) forever and always πβ¨
π¦ 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