STRUCT CROS_EC_BS_MAP(9)
π 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, likeEV_KEY(thatβs the example, fr fr). πcodeβ a linux keycode. yep, thatβs the whole vibe. β¨οΈbitβ a#definelikeEC_MKBP_POWER_BUTTONorEC_MKBP_LID_OPEN. iconic little bitmap name πinvertedβ if the#defineandEV_SWhave opposite meanings, this istrue. Only applicable to switches. not me reminding you itβs switches-only, but yes π¦
π SEE ALSO π
- Kernel file
./drivers/input/keyboard/cros_ec_keyb.cβ go read it bestie, itβs giving main character energy π struct cros_ec_keyb(9)cros_ec_keyb_report_bs(9)cros_ec_keyb_info(9)cros_ec_keyb_query_switches(9)cros_ec_keyb_resume(9)cros_ec_keyb_register_bs(9)cros_ec_keyb_register_matrix(9)
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
- 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