get_bm_events_by_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– get_bm_events_by_type(9) πŸ’–

okay so bestie, we’re in the Kernel API Manual and this page is literally all about get_bm_events_by_type. no cap, that’s the whole main-character function. ✨


πŸŽ€ NAME πŸŽ€

get_bm_events_by_type β€” returns bitmap of supported events per @type. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

const unsigned long * get_bm_events_by_type (struct input_dev *dev , int type );

πŸ’… ARGUMENTS πŸ’…

  • dev β€” input device from which bitmap is retrieved. 🫢
  • type β€” type of button (EV_KEY, EV_SW). πŸ‘‘

🌸 DESCRIPTION 🌸

The return value of this function can be used to allocate a bitmap large enough to hold all bits for the given type. πŸŽ€ That’s the whole vibe: grab the bitmap sitch, size your allocation correctly, slay. ✨

πŸ”₯ SEE ALSO πŸ”₯

lowkey important: these are the SEE ALSO references, so don’t lose them in the group chat. πŸ’œ

xoxo, your kernel bestie πŸ’– β€” source/version: ./drivers/input/keyboard, dated October 2026. periodt. πŸŽ€

πŸ“¦ where this page comes from