thc_interrupt_enable(9)
π thc_interrupt_enable β like, the THC interrupt on/off switch
okay so bestie, welcome to the <rainbow>Kernel API Manual</rainbow> β¨ β this one's a lil function from the intel-thc-hid world, and honestly? she's a simple girl. no cap.
πΈ NAME πΈ
thc_interrupt_enable β Enable or disable THC interrupt π that's it, that's the whole job, and she does it flawlessly
β¨ SYNOPSIS β¨
void thc_interrupt_enable (struct thc_device *dev , bool int_enable );
void, meaning she returns nothing β she just does the thing and leaves, main character energy π
π¦ ARGUMENTS π¦
devβ the pointer of THC private device context π«Ά literally the lil device brain she needs to poke at. hand her this and she knows exactly whose interrupt she's flipping.int_enableβ the flag to control THC interrupt enable or disable β it's abool, so it's giving yes/no, on/off, slay/not-slay. flip it one way, interrupts are on; flip it the other, they're off. iykyk.
ngl this is a two-arg function and both args are doing the heavy lifting. respect.
π SEE ALSO π
first up, the source file herself:
- Kernel file
./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.cπ β go read her, she's iconic
and then, the whole friend group π (all in section 9, all linked, all valid):
thc_clear_state(9)thc_dev_init(9)thc_tic_pio_read(9)thc_tic_pio_write(9)thc_tic_pio_write_and_read(9)thc_interrupt_config(9)thc_int_trigger_type_select(9)thc_interrupt_quiesce(9)thc_set_pio_interrupt_support(9)thc_ltr_config(9)thc_change_ltr_mode(9)thc_ltr_unconfig(9)thc_int_cause_read(9)thc_interrupt_handler(9)thc_port_select(9)thc_spi_read_config(9)thc_spi_write_config(9)thc_spi_input_output_address_config(9)thc_i2c_subip_init(9)thc_i2c_subip_regs_save(9)thc_i2c_subip_regs_restore(9)thc_i2c_set_rx_max_size(9)thc_i2c_rx_max_size_enable(9)thc_i2c_set_rx_int_delay(9)thc_i2c_rx_int_delay_enable(9)
like, that's the entire thc cinematic universe right there π go binge it fr fr
π source check: this page lives under ./drivers/hid/intel-thc-hid/in... and it's dated October 2026 β so yeah, she's from the future AND she's serving. bye bestie, go enable some interrupts 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