cros_ec_get_host_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🫢


πŸ’– cute sign-off: source ./drivers/platform/chrome, date October 2026, all for cros_ec_get_host_event(9). Bye bestie, go read that kernel file! πŸŽ€
πŸ“¦ where this page comes from