thc_i2c_set_rx_max_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 ⭐

  • 0 on 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 🧚:

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