show_wakeup_protocols(9)
π 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:
scancode_to_u64(9)ir_create_table(9)ir_free_table(9)ir_resize_table(9)ir_update_mapping(9)ir_establish_scancode(9)ir_setkeycode(9)ir_setkeytable(9)ir_lookup_by_scancode(9)ir_getkeycode(9)rc_g_keycode_from_table(9)ir_do_keyup(9)rc_keyup(9)ir_timer_keyup(9)ir_timer_repeat(9)rc_repeat(9)ir_do_keydown(9)rc_keydown(9)rc_keydown_notimeout(9)rc_validate_scancode(9)rc_validate_filter(9)struct rc_filter_attribute(9)show_protocols(9)parse_protocol_change(9)store_protocols(9)show_filter(9)store_filter(9)store_wakeup_protocols(9)
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
- 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