hid_device_io_stop(9)
π hid_device_io_stop(9) β the Kernel API Manual moment π
okay bestie, so this one lives in the Kernel API Manual and it's lowkey a little two-line function with a LOT of rules, so pay attention π
β¨ NAME β¨
hid_device_io_stop β disable HID input during probe, remove
bestie the name literally tells you everything: we're stopping the HID input flow, and the window where that matters is probe and remove π«Ά
πΈ SYNOPSIS πΈ
void hid_device_io_stop (struct hid_device *hid );
that's it. no return value, no drama, void and done π
π¦ ARGUMENTS π¦
hidβ the device. that's the whole description. it's the HID device, she's the main character, hand her over π
π DESCRIPTION π
so here's the vibe check π₯ β you should only call this after hid_device_io_start. like, start first, stop second, that's the order, no cap.
what it does: it will prevent incoming packets from going to the driver for the duration of probe, remove. so during that probe/remove window, packets are just... not invited to the driver party π
and here's the detail that trips people up (iykyk): if called during probe, packets will still go to the driver after probe is complete. so it's not a forever-block, it's a "not right now" block β¨
β οΈ final rule, and it's a big one: this function should only be called by the thread calling probe or remove. not your random other thread. not your friend's thread. the probe/remove thread. periodt π
π SEE ALSO π
- Kernel file
./include/linux/hid.hHID quirks(9) struct hid_battery(9)struct hid_driver(9)struct hid_ll_driver(9)module_hid_driver(9)hid_device_io_start(9)β the one you gotta call first, bestie π₯°hid_map_usage(9)hid_map_usage_clear(9)hid_parse(9)hid_hw_power(9)hid_hw_idle(9)hid_hw_may_wakeup(9)hid_hw_wait(9)hid_report_len(9)
and that's the whole page!! π shoutout to ./include/linux for housing this icon, dated October 2026, straight out of the Kernel API Manual β hid_device_io_stop(9) signing off, mwah ππ§β
π¦ 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