rc_keydown(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rc_keydown(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for rc_keydown(9) β€” yes the whole page is about this one tiny function and honestly? it's giving main character energy πŸ’…


🌸 NAME 🌸

rc_keydown β€” literally generates an input event for a key press. that's it. that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void rc_keydown (struct rc_dev *dev , enum rc_proto protocol , u64
scancode , u8 toggle );

no cap, that's the whole signature. stay with me, we're gonna walk through every single parameter 🫢


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the struct rc_dev descriptor of the device πŸ‘‘ like, the whole remote control's identity card, y'know?
  • protocol β€” the protocol for the keypress πŸ“‘ which dialect your remote is speaking, basically.
  • scancode β€” the scancode for the keypress πŸ”’ the raw little number the button sent out into the world.
  • toggle β€” the toggle value β€” and here's the tea, it's protocol dependent πŸ™ˆ if the protocol doesn't support toggle values, this should be set to zero. zero. not one. not "whatever". zero ⭐

✨ DESCRIPTION ✨

so this routine is used to signal that a key has been pressed on the remote control πŸ’€ that's the entire description, she's short and she knows it. iconic. use it when a button goes down, periodt.


🌈 SEE ALSO 🌈

kernel file ./drivers/media/rc/rc-main.c β€” and now, the guest list πŸŽ€ (it's long, buckle up bestie):

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_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 twenty-eight of them, nobody got left off the list 🫢✨


and that's the whole page, bestie!! mwah πŸ’œ this one lives in ./drivers/media/rc, blessed us in October 2026, and it's filed under rc_keydown(9) β€” go forth and press keys πŸŽ€πŸ”₯πŸ’…

πŸ“¦ where this page comes from