matrix_keypa...e_properties(9)
π matrix_keypa...e_properties(9) π
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, it's giving "official docs but make it cute" β¨ this page is literally all about matrix_keypad_parse_properties, no cap π
πΈ NAME πΈ
matrix_keypad_parse_properties β read the properties of a matrix keypad, that's the whole vibe π¦
β¨ SYNOPSIS β¨
int matrix_keypad_parse_properties (struct device *dev , unsigned int
*rows , unsigned int *cols );
like. that's the signature. copy it exactly, don't @ me π₯
π ARGUMENTS π
devβ the device that's holding all these properties, aka the main character πrowsβ this one returns the number of matrix rows, so yeah, it's an output, treat it right π«Άcolsβ this one returns the number of matrix columns. and bestie, here's the deal: it returns0if OK, and<0on error. that's the whole return contract, don't forget it π
fr fr, bothrowsandcolsare pointers that get filled in β the function hands the numbers back to you through them π
π¦ SEE ALSO π¦
- Kernel file
./drivers/input/matrix-keymap.cβ go read it, it's iconic π matrix_keypad_build_keymap(9)β the sibling page, iykyk π
so that's the whole page, short and slay β this one's from ./drivers/input, dated October 2026 β periodt, go build a keypad ππ
π¦ 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