rfkill_unregister(9)
π rfkill_unregister(9) π
okay so bestie, this is a page straight out of the Kernel API Manual β yes, the kernel, we're being fancy today π
β¨ NAME β¨
rfkill_unregister β the function that unregisters a rfkill structure. that's it, that's the whole vibe. bye-bye rfkill π
πΈ SYNOPSIS πΈ
void rfkill_unregister (struct rfkill *rfkill );
it's void, so it gives nothing back β it just does the thing and leaves. main character energy tbh π
π ARGUMENTS π
rfkillβ therfkillstructure that's getting unregistered. that's the one being sent off π«Ά
π¦ DESCRIPTION π¦
so here's the tea β β your network driver should call this function during device teardown, and its whole job is to destroy the rfkill structure. like, clean up your mess, bestie.
and listen, this part is important: until it returns, the driver needs to be able to service method calls. not after, not "whenever it feels like it" β until it returns. so don't go tearing down the thing that answers the phone before this function is done doing its little goodbye dance, okay? ngl this is the kind of detail that lowkey matters π«‘
π fr fr: keep servicing those method calls until rfkill_unregister comes back. no cap.
π SEE ALSO π
the whole squad, gathered for you π:
- Kernel file
./include/linux/rfkill.hstruct rfkill_ops(9) rfkill_alloc(9)rfkill_register(9)rfkill_pause_polling(9)rfkill_resume_polling(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_set_states(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 an entire friend group of rfkill functions, and honestly? obsessed π
okay that's the page!! it lives in ./include/linux, it's dated October 2026, and it's part of the Kernel API Manual β slay, go unregister something responsibly β¨π§π
π¦ 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