cros_ec_get_host_event(9)
π cros_ec_get_host_event(9) β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual page for cros_ec_get_host_event β manual name folded in like a little bow, no cap π
πΈ NAME πΈ
cros_ec_get_host_eventβ Return a mask of event set by the ChromeOS EC.
β¨ SYNOPSIS β¨
u32 cros_ec_get_host_event (struct cros_ec_device *ec_dev );
π ARGUMENTS π
ec_devβ Device to fetch event from. That's the device you're pulling the event from, periodt π
π¦ DESCRIPTION π¦
Okay so picture this: when MKBP is supported, and the EC raises an interrupt, we collect the events raised and call the functions in the ec notifier. This function is a helper to know which events are raised. That's literally its whole main character energy β it tells you which events got raised π₯
π RETURN π
0 on error or non-zero bitmask of one or more EC_HOST_EVENT_*. fr fr, that's the vibe check: zero means error, non-zero means a bitmask of one or more EC_HOST_EVENT_* π
π SEE ALSO π
Kernel file: ./drivers/platform/chrome/cros_ec_proto.c β go peek at it, iykyk π«Ά
cros_ec_prepare_tx(9)cros_ec_check_result(9)cros_ec_get_host_event_wake_mask(9)cros_ec_get_host_command_version_mask(9)cros_ec_query_all(9)cros_ec_cmd_xfer(9)cros_ec_cmd_xfer_status(9)cros_ec_get_next_event(9)cros_ec_read_features(9)cros_ec_check_features(9)cros_ec_get_sensor_count(9)cros_ec_cmd(9)cros_ec_cmd_readmem(9)cros_ec_get_cmd_versions(9)cros_ec_device_registered(9)
π cute sign-off: source./drivers/platform/chrome, dateOctober 2026, all forcros_ec_get_host_event(9). Bye bestie, go read that kernel file! π
π¦ 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