__rfkill_switch_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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:

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