rfkill_set_states(9)
π 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:
rfkill_alloc(9)rfkill_register(9)rfkill_pause_polling(9)rfkill_resume_polling(9)rfkill_unregister(9)rfkill_destroy(9)rfkill_set_hw_state_reason(9)rfkill_set_hw_state(9)rfkill_set_sw_state(9)rfkill_init_sw_state(9)rfkill_blocked(9)rfkill_soft_blocked(9)rfkill_find_type(9)rfkill_get_led_trigger_name(9)rfkill_set_led_trigger_name(9)
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
- 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