rfkill_set_states(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rfkill_set_states πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for rfkill_set_states, and honestly it's giving "small function, big mood" πŸŽ€


🌸 NAME 🌸

rfkill_set_states β€” set the internal rfkill block states, no cap πŸ’…


⭐ SYNOPSIS ⭐

void rfkill_set_states (struct rfkill *rfkill , bool sw , bool hw );

like that's the whole signature, she's compact and she knows it 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rfkill β€” pointer to the rfkill class to modify. yes queen, this is the thing you're poking at πŸ‘‘
  • sw β€” the current software block state to set πŸ“
  • hw β€” the current hardware block state to set 🌈

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• β€” this function can be called in any context. literally any. and not just the boring normal contexts either: it can be called even from within rfkill callbacks 😭πŸ”₯ that's the whole vibe, that's the whole point, periodt.

bestie pls note: "any context" is the actual documented behaviour here β€” don't go inventing extra rules, this is exactly what the page says πŸ’€

🧚 SEE ALSO 🧚

Kernel file ./include/linux/rfkill.h and struct rfkill_ops(9), plus this whole friend group:

like, the whole squad showed up for this one πŸŒΈπŸ’–


and that's the page!! mwah πŸ’‹ sign-off time: this lil icon lives in ./include/linux, dated October 2026 β€” iykyk πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from