thc_i2c_set_rx_max_size(9)
β¨ thc_i2c_set_rx_max_size(9) β¨
okay so bestie, welcome to the Kernel API Manual π β yes we're in kernel land today, and no, it's not scary, i promise. this one is literally a tiny little setter function and it's giving "short but iconic" π
πΈ NAME πΈ
thc_i2c_set_rx_max_size β set the I2C Rx transfer max input size, that's the whole vibe π
π¦ SYNOPSIS π¦
int thc_i2c_set_rx_max_size (struct thc_device *dev , u32 max_rx_size );
like look at her. one pointer, one u32, returns an int. minimalism ate π
π ARGUMENTS π
devβ the pointer of the THC private device context, aka the little home base for your device, you gotta hand it over π«Άmax_rx_sizeβ max input report packet size for input report π¦ (yes, both of those words are "input report", no i'm not editing it, that's what it says, iykyk)
π₯ DESCRIPTION π₯
so what does she do? she sets max_rx_size for the I2C RxDMA max input size control feature β¨ that's it. that's the whole description. no cap, sometimes a function is just a function and we respect the honesty π
like honestly? main character energy of a function that knows exactly what it wants and doesn't overexplain π
β RETURN β
0on success ππ- other error codes on failure π (she's not gonna tell you which ones, that's a you problem bestie, check your code)
ngl, always check the return value. 0 is the slay outcome, anything else means something went sideways π
π SEE ALSO π
first up, the kernel file she lives in β go say hi:
./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c
and then the whole friend group, fr fr, all of them listed and all of them kept exactly as-is because i do not skip entries π§:
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_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_rx_max_size_enable(9)thc_i2c_set_rx_int_delay(9)thc_i2c_rx_int_delay_enable(9)
like okayyy look at that roster π₯ that's a whole squad and every single one made the list π
and that's the page!! source/version situation: ./drivers/hid/intel-thc-hid/in... (yeah it's truncated in the footer, i don't make the rules π₯²), dated October 2026. mwah, go set some max rx sizes 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