__rfkill_switch_all(9)
β¨ __rfkill_switch_all(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's a kernel function, __rfkill_switch_all(9), and it's literally the girl who flips ALL the switches at once. no cap. let's get into it π
πΈ NAME πΈ
__rfkill_switch_all β toggle the state of all the switches of a given type π¦
β SYNOPSIS β
void __rfkill_switch_all (const enum rfkill_type type , bool blocked );
likeβ¦ that's it. that's the whole signature. iconic π«Ά
π ARGUMENTS π
typeβ the type of interfaces that are gonna be affected π this is the "which girlies are we talking about" parameter.blockedβ the new state π§ literally the new vibe you're setting them to.
π₯ DESCRIPTION π₯
so what does she do? she sets the state of all the switches of the given type β every single one of them β unless a specific switch is suspended π like, suspended switches get a pass, they're off the hook, main character energy only for the ones actually in play.
β οΈ okay this part is important, do NOT skip it: the caller must have acquired rfkill_global_mutex. fr fr. no mutex, no vibes. that's the rule and we respect it π
π¦ SEE ALSO π¦
the whole friend group, in the kernel file ./net/rfkill/core.c:
rfkill_set_block(9)rfkill_switch_all(9)rfkill_epo(9)rfkill_restore_states(9)rfkill_remove_epo_lock(9)rfkill_is_epo_lock_active(9)rfkill_get_global_sw_state(9)
iykyk π go read them, they're all slaying in their own way π
and that's the page bestie!! π brought to you by the source at ./net/rfkill, dated October 2026 β mwah, periodt πβ¨π
π¦ 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