thc_clear_state(9)
π thc_clear_state(9) β from the Kernel API Manual, bestie β¨
Okay so this one's a little kernel-page moment from the Kernel API Manual and honestly it's short and iconic and I need you to pay attention for like twelve seconds π«Ά
πΈ NAME πΈ
thc_clear_state β clears the THC hardware state. that's it, that's the whole vibe. it resets the hardware's whole situation β¨
π¦ SYNOPSIS π¦
void thc_clear_state (const struct thc_device *dev );
literally one function, one argument, void return so nothing comes back to you, no notes π
π ARGUMENTS π
devβ the pointer to the THC device structure. yes, it's a pointer, and yes it'sconst, so this function is looking respectfully and not touching your struct π
ngl the whole page is just this one arg, so if you got this you got everything, periodt π
β SEE ALSO β
the kernel file that lives at ./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c β that's the home base, that's where it all happens π
and then a genuinely massive friend group of related functions, all of them (9), all of them part of the lore:
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_enable(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)
twenty-five of them. twenty-five!! that's not a see-also that's a whole group chat π but fr fr go read them, they're all doing their own little job π
okay bestie that's the page π cute little sign-off moment: this beauty comes from ./drivers/hid/intel-thc-hid/in... and it's dated October 2026, filed under thc_clear_state(9) β go clear some state, slay ππ
π¦ 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