cros_ec_keyb...ister_matrix(9)
π cros_ec_keyb...ister_matrix(9)
okay so this is from the Kernel API Manual, and bestie, it's a short one but it's lowkey iconic. It's giving "small function, big responsibility." Let's get into it β¨
πΈ NAME πΈ
cros_ec_keyb_register_matrix β registers matrix keys π
Like, it literally just does the matrix keys thing. That's the whole vibe check.
π SYNOPSIS π
int cros_ec_keyb_register_matrix (struct cros_ec_keyb *ckdev );
yes, it returns an int, yes there's a space before the closing paren in the original, no we are not fixing it, periodt π
π¦ ARGUMENTS π¦
ckdevβ the keyboard device, iykyk. This is your main character right here, thestruct cros_ec_keyb *you're passing in. It's the whole reason we're here fr fr π«Ά
π₯ DESCRIPTION π₯
So what does it actually do? It handles all the bits of the keyboard driver related to matrix keys. That's it, that's the job β all those bits. The matrix-key bits specifically. Not the other bits. The matrix ones. Obsessed with the specificity ngl π
And the return value? Adorable. It returns 0 if there's no error, or -error upon error. So like, 0 = slay, negative = something went off and it's telling you about it π
ngl this description is short but every word is carrying its weight. Don't skim it. π§
π SEE ALSO π
Kernel file ./drivers/input/keyboard/cros_ec_keyb.c, plus the whole squad:
struct cros_ec_keyb(9)struct cros_ec_bs_map(9)cros_ec_keyb_report_bs(9)cros_ec_keyb_info(9)cros_ec_keyb_query_switches(9)cros_ec_keyb_resume(9)cros_ec_keyb_register_bs(9)
the whole friend group fr, go read them all if you want the full lore π
okay and last thing, the cute sign-off π: this page lives in ./drivers/input/keyboard and it's dated October 2026, so it's basically from the future. Future icon behavior honestly πβ¨ bye bestie, go register some matrix keys π
π¦ 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