gpio_keys_attr_show_helper(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

gpio_keys_attr_show_helper ✨

okay bestie, this one is straight from the Kernel API Manual, and it's giving β€œtiny helper, very important paperwork” energy πŸ’…


🌸 NAME 🌸

gpio_keys_attr_show_helper β€” fill in stringified bitmap of buttons πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

ssize_t gpio_keys_attr_show_helper (struct gpio_keys_drvdata *ddata ,
char *buf , unsigned int type , bool only_disabled );

πŸ’– ARGUMENTS πŸ’–

  • ddata β€” pointer to drvdata. yep, that's the whole vibe 🫢
  • buf β€” buffer where stringified bitmap is written ✨
  • type β€” button type (EV_KEY, EV_SW) πŸ‘‘
  • only_disabled β€” does caller want only those buttons that are currently disabled or all buttons that can be disabled? that's the question bestie πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

This function writes buttons that can be disabled to buf. if only_disabled is true, then buf contains only those buttons that are currently disabled. Returns 0 on success or negative errno on failure. no cap, that's the whole deal πŸ’€βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the tea β˜• β€” source/version spot was ./drivers/input/keyboard, dated October 2026, page gpio_keys_attr_show_helper(9). bye bestie, slay your kernel adventures πŸ’…πŸ’–πŸ«Ά

πŸ“¦ where this page comes from