batadv_getlink_net(9)
π batadv_getlink_net β a Kernel API Manual moment π
okay so bestie, welcome to batadv_getlink_net(9) β the little kernel helper that hands you a link's net namespace, and has a fallback plan if things get awkward π«Ά
β¨ NAME β¨
batadv_getlink_net β return link net namespace (of use fallback)
πΈ SYNOPSIS πΈ
struct net * batadv_getlink_net (const struct net_device *netdev ,
struct net *fallback_net );
π ARGUMENTS π
netdevβ thenet_deviceyou want checked, bestie. like, that's the one we're interrogating πfallback_netβ the net namespace we hand back ifget_link_netisn't available fornetdev. your safety net, your ride home, your emotional supportstruct net *π§
π RETURN π
the result of rtnl_link_ops->get_link_net, or fallback_net if that isn't there. periodt. β¨
π¦ SEE ALSO π¦
literally the whole squad, no cap β all of these live in the kernel file ./net/batman-adv/hard-interface.c:
batadv_hardif_release(9)batadv_hardif_get_by_netdev(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)
reminder bestie: ifget_link_netisn't available for yournetdev, you're not getting nothing β you're gettingfallback_net. slay π
and that's the whole page, mwah π β this iconic little entry ships from the ./net/batman-adv source tree, dated October 2026, and answers to the name batadv_getlink_net(9). go read your kernel headers, ily, bye πβ¨
π¦ 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