thc_port_select(9)
π thc_port_select(9) β the manual page, bestie edition π
okay so this is thc_port_select(9) from the Kernel API Manual, and honestly? she's a short one but she matters. Sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
thc_port_select β Set THC port type. yeah that's it. that's the whole vibe. it literally picks which port type your device is gonna use, no cap π
πΈ SYNOPSIS πΈ
int thc_port_select (struct thc_device *dev , enum thc_port_type
port_type );
like, look at her. returns an int, takes two things, slays. π«Ά
π¦ ARGUMENTS π¦
devβ the pointer of THC private device context. it's giving "the main character struct" π. this is your device's own little private world, and you're handing it over.port_typeβ the THC port type to use for current device. like, which flavour of port are we running today, bestie? you decide. β¨
π₯ RETURN π₯
0on success π β iconic, we love to see it.- other error codes on failed π β not the moment, but okay, at least you get some code back.
ngl if you get anything other than0, something went sideways. go check yourdev. π
π SEE ALSO π
the friend group!! the whole squad!! every single one of them, fr fr β go read them too, iykyk:
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_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)
also the actual source file, bestie, if you wanna read the real thing:
- Kernel file
./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.cπ§
and that's the whole page!! mwah π okay so the source line is ./drivers/hid/intel-thc-hid/in... (yes it's literally cut off like that in the footer, don't come for me π), the date on this one is October 2026, and it's filed under thc_port_select(9). bye bestie, go set some port types πβ¨
π¦ 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