ishtp_register_event_cb(9)
π ishtp_register_event_cb β a Kernel API Manual moment β¨
okay so bestie, welcome to ishtp_register_event_cb(9) from the Kernel API Manual π β this is the little function that hooks your event callback up so the client driver can get pinged when stuff happens. it's giving "set it and forget it" but make it kernel β¨
πΈ SYNOPSIS πΈ
int ishtp_register_event_cb (struct ishtp_cl_device *device , void
(*event_cb)(struct ishtp_cl_device *) );
like, it takes a device and a function pointer, returns an int, and that's the whole vibe check π«Ά
β¨ ARGUMENTS β¨
deviceβ the client device instance. your main character struct π this is the one you're attaching the callback to.event_cbβ the event processor for a client. this is the function that gets called when events come through β your designated hype person for events π₯
π DESCRIPTION π
so basically: you register a callback for events, and it gets called from the client driver. that's it. that's the whole function. one job, does it well, slays π
β RETURN β
it returns 0 β or -EALREADY if it's already been registered π like bestie it's already there, we been knew, no double-registering π
π¦ SEE ALSO π¦
lowkey a whole friend group in here, all living in the kernel file ./drivers/hid/intel-ish-hid/ishtp/bus.c π§ ngl this list ate:
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_get_device(9)ishtp_put_device(9)ishtp_set_drvdata(9)ishtp_get_drvdata(9)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)
and that's the page bestie π«Ά it lives in ./drivers/hid/intel-ish-hid/ishtp, dated October 2026, and yes the header says ishtp_register_event_cb(9) twice because the manpage said so π periodt β¨
π¦ 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