rc_repeat(9)
π 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β thestruct rc_devdescriptor 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:
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)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)show_wakeup_protocols(9)store_wakeup_protocols(9)
^^ 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
- 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