batadv_get_real_netdev(9)
π batadv_get_real_netdev(9) β kernel API manual, section 9, bestie
okay so this is a kernel API manual page for batadv_get_real_netdev, living in section 9 of the manual, and honestly? it's short but it's important, so let's go π«Ά
β¨ NAME β¨
batadv_get_real_netdev β the function that checks whether the net_device struct you handed it is a virtual interface sitting on top of another, "real" interface π¦
like, is your netdev wearing a costume? this function finds out. no cap.
πΈ SYNOPSIS πΈ
struct net_device * batadv_get_real_netdev (struct net_device *net_device );
one argument in, one struct net_device * out. cute, clean, iconic π₯
π ARGUMENTS π
net_deviceβ the device to check π literally just hand it the device you're curious about and let it do its thing.
π RETURN π
it gives you back the 'real' net device, or the original net device β and NULL in case of an error π
so: real one, or the same one you gave it, or NULL if something went sideways. three possible vibes, one return value. periodt.
ngl, always check for that NULL before you go dereferencing anything, bestie π
π SEE ALSO π
this is the part where it name-drops everyone β and we mean everyone. the whole friend group shows up:
- Kernel file
./net/batman-adv/hard-interface.cπ batadv_hardif_release(9)batadv_hardif_get_by_netdev(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_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)
that's the whole roster, no skips, we listed every single one π iykyk
and that's the page!! β¨ this one came from ./net/batman-adv and it's dated October 2026 β so like, from the future? kinda iconic of it honestly π§ββοΈ go forth and check your netdevs, bestie π
π
π¦ 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