hid_hw_may_wakeup(9)
πΈ hid_hw_may_wakeup(9) β the group-chat version πΈ
okay so bestie, welcome to the Kernel API Manual, and today's main character is hid_hw_may_wakeup(9). it's a whole vibe check for your HID device, and honestly? it's giving "will u wake me up at 3am" energy π
β¨ NAME β¨
hid_hw_may_wakeup β returns whether the hid device is allowed to act as a wakeup source while the system is suspended π΄β‘
like, is this thing permitted to yank the whole system out of suspend? that's the question. no cap.
π¦ SYNOPSIS π¦
bool hid_hw_may_wakeup (struct hid_device *hdev );
it's a bool, so you already know the answer is gonna be a yes/no situation. very demure, very mindful π
π ARGUMENTS π
hdevβ the hid device. literally just the hid device. that's the whole argument. she's low maintenance π
π₯ SEE ALSO π₯
bestie there is a whole friend group here, and the kernel file hosting all of it is ./include/linux/hid.h β go say hi to the family π«Ά
HID quirks(9)struct hid_battery(9)struct hid_driver(9)struct hid_ll_driver(9)module_hid_driver(9)hid_device_io_start(9)hid_device_io_stop(9)hid_map_usage(9)hid_map_usage_clear(9)hid_parse(9)hid_hw_power(9)hid_hw_idle(9)hid_hw_wait(9)hid_report_len(9)
ngl that's a stacked lineup. the whole squad ate πβ¨
and that's the page, bestie! π this little icon lives over in ./include/linux, it's dated October 2026, and it answers to the name hid_hw_may_wakeup(9). mwah, go read some kernel source, ily ππ
π¦ 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