rc_validate_scancode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Hii bestie, welcome to the rc_validate_scancode(9) page in the Kernel API Manual ✨ This function is the vibe check for whether a scancode is valid for a protocol. And for nec, it should do the opposite of ir_nec_bytes_to_scancode() β€” yes, literally the opposite, no cap 🫢


🌸 SYNOPSIS 🌸

Behold the signature, iconic and exact:

bool rc_validate_scancode (enum rc_proto proto , u32 scancode );

πŸŽ€ ARGUMENTS πŸŽ€

  • proto β€” the protocol, bestie.
  • scancode β€” the scancode. That’s the whole assignment πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file in question is ./drivers/media/rc/rc-main.c, and here’s the whole friend group:


Mwah πŸ’‹ cute little sign-off: this page’s source/version info is ./drivers/media/rc with October 2026, and yes, the page is rc_validate_scancode(9) πŸŽ€βœ¨

πŸ“¦ where this page comes from