batadv_hardi...te_interface(9)
π¦ batadv_hardif_activate_interface β Kernel API Manual energy β¨
okay so bestie, welcome to the Kernel API Manual (that's the manual name, iykyk π), and today's main character is batadv_hardif_activate_interface(9). she's giving "glow up moment for a network interface" and honestly? obsessed. π
β¨ NAME β¨
batadv_hardif_activate_interface β move a hard interface to the active state π¦
like, the whole point. she takes a hard interface that is not yet active and goes "bestie, you're UP now." periodt.
πΈ SYNOPSIS πΈ
void batadv_hardif_activate_interface (struct batadv_hard_iface *hard_iface );
no return value, no drama, just void and vibes β¨
π ARGUMENTS π
hard_ifaceβ the interface that has come up π this is the one getting the activation treatment, the whole reason we're here, the guest of honor π«Ά
π₯ DESCRIPTION π₯
so here's the tea, and ngl it's a good one:
- Activate an interface. that's the core move. she's up, she's live, she's in the active state β
- Select it as the primary interface if no primary is currently active β notice the "if", bestie, that conditional is doing WORK. if there's already a primary, this one does not steal the crown π (no primary = the new one gets the crown. periodt.)
- Invoke the algorithm-specific activate hook. so each routing algorithm gets to run its own little activate situation. whatever the algorithm wants to do on activation, it does it here π§
and that's it! three things, all bangers, no filler. main character energy from start to finish πβ¨
π SEE ALSO π
okay so this is the extended friend group β everyone linked below is in the batadv cinematic universe (:3) and they all live in the 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_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_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)
like, thirty-five whole siblings. a whole squad. the wifi_net_device ones are literally a friend group within the friend group π
quick vibe check π: this page lives at ./net/batman-adv and it's dated October 2026, so she's from the future and she's thriving β¨
and that's the page, bestie β go activate something ππ¦πΈ
π¦ 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