ath5k_hw_set_gpio_intr(9)
π ath5k_hw_set_gpio_intr β Kernel API Manual, bestie edition β¨
okay so real talk, this one is from the ath5k corner of the kernel β the ath5k_hw_set_gpio_intr(9) page β and it's lowkey iconic because it's all about wiring up your RFKill switch π
β¨ NAME β¨
ath5k_hw_set_gpio_intr β initialize the GPIO interrupt for the RFKill switch, no cap π«Ά
π¦ SYNOPSIS π¦
void ath5k_hw_set_gpio_intr (struct ath5k_hw *ah , unsigned int gpio ,
u32 interrupt_level );
like, that's the whole signature, copy it exactly bestie, I'm not touching a single space π
πΈ ARGUMENTS πΈ
ahβ thestruct ath5k_hwitself, your main character struct πgpioβ the GPIO pin you're gonna use, pick your fave π―interrupt_levelβTrueto generate an interrupt on the active pin (that means high) β‘
π DESCRIPTION π
so what does this actually do? it sets up the GPIO interrupt for the hardware RFKill switch, periodt. that switch is physically connected to a GPIO pin, and its number is stored on the EEPROM β iykyk, the EEPROM is the one holding the receipts π§Ύ
and the vibe of the switch? it can either open or close the circuit to tell us "hey, disable RF/Wireless to save power" β and yeah, we also get that info from the EEPROM too π β¨
it's giving "small switch, big responsibilities" tbh π
π₯ SEE ALSO π₯
- the kernel file
./drivers/net/wireless/ath/ath5k/gpio.cand the GPIO/LED functions(9) π¦ ath5k_hw_set_ledstate(9)βath5k_hw_set_gpio_input(9)πath5k_hw_set_gpio_output(9)πath5k_hw_get_gpio(9)πath5k_hw_set_gpio(9)π
and that's the page!! sourced from ./drivers/net/wireless/ath/ath5k, dated October 2026 β go forth and interrupt your GPIO responsibly, bestie π«Άππ§
π¦ 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