rc_repeat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rc_repeat β€” the "bestie's still holding the button!!" signal πŸ’…

so this is rc_repeat(9) from the Kernel API Manual, and honestly it's a tiny little function with one job and it does it immaculately. periodt.


✨ NAME ✨

rc_repeat β€” signals that a key is still pressed πŸ‘‘πŸ”₯

like, the remote is still screaming the same button at you and this function is the one that goes "okay okay we heard you, still pressed, got it." no cap.


πŸŽ€ SYNOPSIS πŸŽ€

void rc_repeat (struct rc_dev *dev );

that's it. that's the whole thing. one argument, returns nothing (void), and honestly the way that a one-liner can be this iconic? we love to see it. πŸ’–


🌸 ARGUMENTS 🌸

  • dev β€” the struct rc_dev descriptor of the device πŸ¦‹. it's the device's little ID card, the thing that tells this routine which remote we're talking about. bestie needs to know who she's working with, y'know?

🌈 DESCRIPTION 🌈

okay so real talk. this routine gets called by the IR decoders in one very specific situation: when a repeat message comes in, but that message is missing the bits you'd need to actually reproduce the scancode 🫢.

which, like β€” imagine someone texting you "same as before" but you deleted the earlier message 😭. the decoder can't rebuild the scancode from what it got. so instead of guessing, it hits up rc_repeat, which goes "cool, the key is still pressed, that's all we know, moving on." highkey the most honest function in the kernel ngl πŸ’€βœ¨


πŸ’œ SEE ALSO πŸ’œ

literally the whole friend group πŸ’… β€” the kernel file ./drivers/media/rc/rc-main.c and all these icons:

^^ all of them are in ./drivers/media/rc if you ever wanna go say hi πŸ˜ŒπŸ’–


okay bye bestie!! this page lives in ./drivers/media/rc, dated October 2026, and it's part of the Kernel API Manual 🌟 slay, stay pressed (in the good way) πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from