parse_protocol_change(9)
π NAME π
okay bestie, welcome to the parse_protocol_change(9) page from the Kernel API Manual β the icon itself, parse_protocol_change, and its whole job is literally parses a protocol change request β¨
π SYNOPSIS π
int parse_protocol_change (struct rc_dev *dev , u64 *protocols , const char *buf );
π¦ ARGUMENTS π¦
devβ therc_devdevice, main character energy fr frprotocolsβ pointer to the bitmask of current protocols, lowkey the whole mood boardbufβ pointer to the buffer with a list of changes, aka the group chat receipts π¨
πΈ DESCRIPTION πΈ
okay so here's the tea, no cap β this function reads what you wrote and updates the protocol mask accordingly:
- Writing
"+proto"will add a protocol to the protocol mask π - Writing
"-proto"will remove a protocol from the protocol mask π«Ά - Writing
"proto"will enable only"proto"β exclusive era π - Writing
"none"will disable all protocols π
and then it returns the number of changes performed or a negative error code β so like, keep an eye on that return value bestie, negative means something went sideways ππ₯
π§ SEE ALSO π§
Kernel file ./drivers/media/rc/rc-main.c β and here's the whole related squad, iykyk:
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(9)rc_keydown_notimeout(9)rc_validate_scancode(9)rc_validate_filter(9)struct rc_filter_attribute(9)show_protocols(9)store_protocols(9)show_filter(9)store_filter(9)show_wakeup_protocols(9)store_wakeup_protocols(9)
kisses and slay, bestie π β this page lives in ./drivers/media/rc, dated October 2026, and it's parse_protocol_change(9) forever and ever π
β¨π
π¦ 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