batadv_is_wifi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 extracted batadv_hard_iface_wifi_flags of a net_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 πŸ”₯

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