ishtp_set_drvdata(9)
β¨ 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 todataβ 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:
ishtp_recv(9),ishtp_send_msg(9),ishtp_write_message(9)ishtp_fw_cl_by_uuid(9),ishtp_fw_cl_get_client(9),ishtp_get_fw_client_id(9),ishtp_fw_cl_by_id(9)ishtp_cl_device_probe(9),ishtp_cl_bus_match(9),ishtp_cl_device_remove(9),ishtp_cl_device_suspend(9),ishtp_cl_device_resume(9),ishtp_cl_device_reset(9)ishtp_bus_add_device(9),ishtp_bus_remove_device(9)ishtp_cl_driver_register(9),ishtp_cl_driver_unregister(9)ishtp_bus_event_work(9),ishtp_cl_bus_rx_event(9)ishtp_register_event_cb(9),ishtp_get_device(9),ishtp_put_device(9)ishtp_get_drvdata(9)β the literal counterpart, go read that one next bestie πishtp_dev_to_cl_device(9),ishtp_bus_new_client(9),ishtp_cl_device_bind(9),ishtp_bus_remove_all_clients(9)ishtp_reset_handler(9),ishtp_reset_compl_handler(9)ishtp_use_dma_transfer(9),ishtp_device(9),ishtp_wait_resume(9)ishtp_get_pci_device(9),ishtp_get_workqueue(9),ishtp_trace_callback(9),ish_hw_reset(9)ishtp_bus_register(9),ishtp_bus_unregister(9)
π 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
- 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