thc_tic_pio_write_and_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… thc_tic_pio_write_and_read (9) β€” Kernel API Manual ✨

okay so bestie, welcome to the glow-up of the THC kernel API manual πŸ’– this one's a little function with main character energy: thc_tic_pio_write_and_read β€” it writes some data, and then it reads some data, both through PIO. iconic behavior, honestly.


🌸 NAME 🌸

thc_tic_pio_write_and_read β€” literally what it says on the tin: write data followed by read data, by PIO. no cap. πŸ¦‹


✨ SYNOPSIS ✨

int thc_tic_pio_write_and_read (struct thc_device *dev , const u32
address , const u32 write_size , const u32 *write_buffer , const u32
read_size , u32 *actual_size , u32 *read_buffer );

she takes seven arguments and returns an int. high maintenance? maybe. worth it? absolutely πŸŽ€


🫢 ARGUMENTS 🫢

  • dev β€” the pointer of the THC private device context. your little home base, your main character's apartment 🏠
  • address β€” slave address for the PIO operation. gotta know where you're going πŸ’…
  • write_size β€” PIO write data size. how much you're serving, bestie πŸ“
  • write_buffer β€” the pointer of the write data buffer. this is where the served data lives ✨
  • read_size β€” expected PIO read data size. keyword: expected β€” see actual_size below if you're nosy πŸ‘€
  • actual_size β€” the pointer of the actual read data size. reality check, lowkey πŸ’€
  • read_buffer β€” the pointer of PIO read data buffer. where the incoming data lands 🌈

πŸ”₯ RETURN πŸ”₯

0 on success, other error codes on failed. so like β€” zero means slay, anything else means something went sideways. not me checking the return value every single time πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file this lives in:

./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c

and now the whole friend group 🫢 β€” every single one of them, in order, no skipping:

periodt. read them all or don't come back to the group chat πŸ’…


okay that's the whole page!! this came out of the source file ./drivers/hid/intel-thc-hid/in... and the date on it is October 2026 🌸 so go forth, pass those pointers correctly, and remember: 0 on success, bestie. mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from