thc_tic_pio_write(9)
π thc_tic_pio_write(9) β bestie's guide to poking the touch device
okay so this is a page straight out of the Kernel API Manual (yes, that manual, the kernel one, we're fancy now π) and it's all about thc_tic_pio_write β the little function that writes data to your touch device via PIO. that's it. that's the whole vibe. let's get into it β¨
πΈ NAME πΈ
thc_tic_pio_write β literally just Write data to touch device by PIO. no cap, that's the entire job description π«Ά
β¨ SYNOPSIS β¨
int thc_tic_pio_write (struct thc_device *dev , const u32 address ,
const u32 size , const u32 *buffer );
look at her. four arguments, returns an int, does exactly one thing. main character energy fr π
π ARGUMENTS π
devβ The pointer of THC private device context. this is your device's little home base, the context struct you gotta hand over πaddressβ Slave address for the PIO operation. this is where you're writing, iykyk πsizeβ PIO write data size. how much you're writing, in case the name wasn't obvious bestie πbufferβ The pointer of the write data buffer. this is the actual goods, the data itself π
π₯ RETURN π₯
0 on success, other error codes on failed. that's it. 0 = slay, anything else = go check the error code bestie π
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c β go read it if you're feeling brave π
and here's the whole friend group, all the siblings and cousins of this function, no one left out, periodt:
thc_clear_state(9)thc_dev_init(9)thc_tic_pio_read(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)
like, the whole squad. go say hi π
ngl if you're out here calling this with a bad buffer pointer that's on you, not on the docs, bestie π
and that's the page!! brought to you by ./drivers/hid/intel-thc-hid/in... (yeah the footer cut it off, iconic behavior honestly) dated October 2026, manual name thc_tic_pio_write(9). mwah, go write some touch data, you got this ππ§
π¦ 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