ir_setkeycode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to ir_setkeycode(9) β€” yes, that's the page title, and the manual is the Kernel API Manual. This icon is here to set a keycode in the scancode->keycode table, no cap.

✨ SYNOPSIS ✨

int ir_setkeycode (struct input_dev *idev , const struct
       input_keymap_entry *ke , unsigned int *old_keycode );

πŸŽ€ ARGUMENTS πŸŽ€

  • idev β€” the struct input_dev device descriptor. It's giving main-character device energy, honestly.
  • ke β€” Input keymap entry. Your keymap moment, fr fr.
  • old_keycode β€” result. The old keycode result lands here, bestie.

πŸ’… DESCRIPTION πŸ’…

This routine is used to handle evdev EVIOCSKEY ioctl. That's the whole vibe: it handles that ioctl, periodt.

πŸ”₯ RETURN πŸ”₯

-EINVAL if the keycode could not be inserted, otherwise zero. So if the insert says nope, you get -EINVAL; otherwise it's zero. Slay.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/media/rc/rc-main.c is the hotspot, and here's the whole squad, iykyk:


xoxo, signing off from the source/version ./drivers/media/rc, October 2026 πŸ’…

πŸ“¦ where this page comes from