store_protocols(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

store_protocols(9) πŸŽ€

okay bestie, this is the Kernel API Manual page for store_protocols(9), and it's literally the function that changes the current/wakeup IR protocol(s). periodt.

✨ NAME ✨

store_protocols β€” changes the current/wakeup IR protocol(s)

🌸 SYNOPSIS 🌸

ssize_t store_protocols (struct device *device , struct device_attribute *mattr , const char *buf , size_t len );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • device β€” the device descriptor. the whole device vibe.
  • mattr β€” the device attribute struct. yes, that one.
  • buf β€” a pointer to the input buffer. the input lives here.
  • len β€” length of the input buffer. how much input we're working with.

πŸ’… DESCRIPTION πŸ’…

So this routine is for changing the IR protocol type. it gets triggered by writing to /sys/class/rc/rc?/[wakeup_]protocols. for the valid commands, go check parse_protocol_change β€” iykyk. it returns len on success, or a negative error code if things are not giving.

dev->lock is taken to guard against races between store_protocols and show_protocols. no cap, that lock is doing important work.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/media/rc/rc-main.c β€” and the whole see-also friend group:


πŸ’– that's the whole page, bestie β€” sourced from ./drivers/media/rc, dated October 2026. go off, kernel queen πŸ‘‘

πŸ“¦ where this page comes from