batadv_is_wifi(9)
π batadv_is_wifi(9) π
okay so this is a page from the Kernel API Manual bestie, and it's a tiny little function that is genuinely so useful. name's batadv_is_wifi β lowercase, snake_case, iconic. no cap.
β¨ NAME β¨
batadv_is_wifi β check if flags belong to wifi interface
like, that's literally the whole job. you hand it flags, it tells you if those flags are giving wifi. π¦
πΈ SYNOPSIS πΈ
bool batadv_is_wifi (u32 wifi_flags );
that's it. one argument, returns a bool. short and sweet, we love a low-parameter-count king π
π ARGUMENTS π
wifi_flagsβ an extractedbatadv_hard_iface_wifi_flagsof anet_device. so like, you pull the wifi flags off a net device first, then you pass them in here. it's a handoff, a little relay race πββοΈ
β RETURN β
returns true if the net device is a 802.11 wireless device, and false otherwise. simple as that. no in-between, no "maybe", no situationship β it's true or false, periodt. π
π₯ SEE ALSO π₯
- Kernel file
./net/batman-adv/hard-interface.henum batadv_hard_if_state(9)enum batadv_hard_if_bcast(9)batadv_hardif_put(9)batadv_primary_if_get_selected(9)batadv_is_cfg80211(9)
all the siblings in the same header-file friend group fr fr. go read them too, iykyk π«Ά
ngl this page is a short one but honestly? sometimes the little helper functions are the main character energy of the whole module. check your flags, know your device, slay. β¨
okay that's the whole page bestie, see u next time π§ from ./net/batman-adv, dated October 2026 β mwah, 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