rfkill_init_sw_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rfkill_init_sw_state β€” kernel API manual, bestie edition πŸ’–

okay so this is rfkill_init_sw_state(9) from the Kernel API Manual, and it's genuinely one of those tiny functions that does exactly one job and does it iconically. no notes. let's get into it 🫢


✨ NAME ✨

rfkill_init_sw_state β€” initialize that persistent software block state, periodt πŸ’…


🌸 SYNOPSIS 🌸

void rfkill_init_sw_state (struct rfkill *rfkill , bool blocked );

like, that's the whole signature. two args. beautiful. no cap.


πŸŽ€ ARGUMENTS πŸŽ€

  • rfkill β€” pointer to the rfkill class to modify. yes bestie, it's a pointer, and yes it's the class you're touching πŸ’–
  • blocked β€” the current software block state to set. you're literally telling it "this is the vibe rn" 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: some rfkill drivers preserve their software block state over power off. like they remember. main character energy fr fr. those drivers use this function to notify the rfkill core β€” and through that, also userspace β€” of their initial state. so everybody's on the same page from the jump ✨

⚠️ it should only be used before registration. that's the rule. do not come in late with this one, bestie 😭

and there's a bonus slay: it also marks the device as "persistent", which is an attribute that can be read by userspace πŸ‘‘. and persistent devices? they're expected to preserve their own state when suspended. that's the whole deal, iykyk 🧚


πŸ”₯ SEE ALSO πŸ”₯

like, the whole friend group. go read them too πŸ’œ


and that's the page!! πŸŽ€ source/version is ./include/linux, dated October 2026 β€” so yeah, this manual page is coming at you straight from the kernel source tree, and it ate. mwah πŸ’‹ bye bestie!! πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from