hid_hw_may_wakeup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 🫢

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