STRUCT CROS_EC_BS_MAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to struct cros_ec_bs_map(9) β€” yes bestie, the Kernel API Manual page β€” and this struct is literally the little matchmaker between Linux keycodes and EC button/switch bitmap #defines. slay ✨

struct cros_ec_bs_map β€” Mapping between Linux keycodes and EC button/switch bitmap #defines 🫢


✨ SYNOPSIS ✨

the struct itself is right here, no cap:

       struct cros_ec_bs_map {
           unsigned int ev_type;
           unsigned int code;
           u8 bit;
           bool inverted;
        };

🫢 Members 🫢

  • ev_type β€” the type of the input event to generate, like EV_KEY (that’s the example, fr fr). πŸ‘‘
  • code β€” a linux keycode. yep, that’s the whole vibe. ⌨️
  • bit β€” a #define like EC_MKBP_POWER_BUTTON or EC_MKBP_LID_OPEN. iconic little bitmap name πŸ’…
  • inverted β€” if the #define and EV_SW have opposite meanings, this is true. Only applicable to switches. not me reminding you it’s switches-only, but yes πŸ¦‹

🌈 SEE ALSO 🌈

okay bye bestie πŸ’– this struct cros_ec_bs_map(9) page came from ./drivers/input/keyboard and is dated October 2026 β€” periodt πŸŽ€

πŸ“¦ where this page comes from