matrix_keypa...e_properties(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 returns 0 if OK, and <0 on error. that's the whole return contract, don't forget it 😭
fr fr, both rows and cols are 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