show_wakeup_protocols(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… show_wakeup_protocols(9) πŸ’…

okay bestie, welcome to the Kernel API Manual corner of the group chat. this page is literally about the wakeup IR protocol, and we're keeping every single detail, no cap. 🫢

🌸 NAME 🌸

show_wakeup_protocols β€” shows the wakeup IR protocol. periodt. πŸ’–

✨ SYNOPSIS ✨

ssize_t show_wakeup_protocols (struct device *device , struct
       device_attribute *mattr , char *buf );

πŸŽ€ ARGUMENTS πŸŽ€

  • device β€” the device descriptor. main character device energy. πŸ¦‹
  • mattr β€” the device attribute struct. yes, mattr, we see you. πŸ‘€
  • buf β€” a pointer to the output buffer. it's giving output buffer, bestie. ✨

πŸ’– DESCRIPTION πŸ’–

okay so this routine is a callback routine for input read the IR protocol type(s). it is triggered by reading /sys/class/rc/rc?/wakeup_protocols β€” yes, with the ? and everything. πŸ‘‘

It returns the protocol names of supported protocols. the enabled protocols are printed in brackets. brackets!! that's the whole vibe check. πŸŽ€

dev->lock is taken to guard against races between store_wakeup_protocols and show_wakeup_protocols. race protection is locked in, no cap. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/media/rc/rc-main.c β€” go peek, bestie. πŸ‘‘

the whole squad of references, exactly as the manpage lists them:


okay that's the page, bestie. footer sign-off: source/version ./drivers/media/rc, date October 2026, page show_wakeup_protocols(9). go be iconic with your wakeup protocols πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from