ishtp_set_drvdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ishtp_set_drvdata β€” set client driver data ✨

okay so this is a page out of the Kernel API Manual, bestie, and it's about ishtp_set_drvdata(9) πŸ’… it's a tiny little function with main character energy β€” it does literally one thing and it does it slayfully.


🌸 SYNOPSIS 🌸

void ishtp_set_drvdata (struct ishtp_cl_device *cl_device , void *data
);

yeah that's the whole thing. void return, two args, she's lowkey minimal and we respect it 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • cl_device β€” the client device instance πŸ’– like, the actual device object you're attaching stuff to
  • data β€” the driver data that needs to be set ✨ whatever blob of a pointer you're carrying around, this is where it goes

πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole vibe is: it sets the client driver data onto cl_device->driver_data. that's it. that's the function. no cap 🧚

think of it as tucking your little pointer into the device's pocket so you can grab it back later β€” iconic, simple, exactly what it says on the tin πŸ‘‘


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/hid/intel-ish-hid/ishtp/bus.c β€” and here's the whole friend group, fr fr:


πŸ’œ reminder bestie: this one only sets the data. if you're trying to read it back, that's a different function (ishtp_get_drvdata(9), we see you πŸ‘€).

and that's the whole page!! ✨ this lives in the ./drivers/hid/intel-ish-hid/ishtp corner of the kernel tree, and this particular cuteness is dated October 2026 🌸 go forth and set that drvdata, you've got this πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from