cros_ec_get_...nt_wake_mask(9)
πΈ cros_ec_get_host_event_wake_mask(9) β a Kernel API Manual moment π
okay bestie, sit down, hydrate, because we're diving into the Kernel API Manual and this one is short but she matters. β¨
π NAME π
cros_ec_get_host_event_wake_mask β and like... that's it, that's the whole name section. No little tagline, no desc, just the girl herself standing there serving pure function name realness. π (yes, the dash after the name in the original is followed by nothing, and we respect the silence.)
π¦ SYNOPSIS π¦
int cros_ec_get_host_event_wake_mask (struct cros_ec_device *ec_dev ,
uint32_t *mask );
she takes two things and gives you back an int, no cap. π
β ARGUMENTS β
ec_devβ the EC device you're calling, like the actual ChromeOS embedded controller you're sliding into the DMs of. it's astruct cros_ec_device *. π«Άmaskβ auint32_t *that gets the result once the function returns0. so like, this is where the answer lands, it's giving output parameter energy. π
π₯ DESCRIPTION π₯
okay so what does she do? she gets the mask of host events that cause wake from suspend. that's the whole vibe. πΈ
π LOCKING π
bestie please read this part, it's giving rules are rules:
the caller has ec_dev->lock mutex, or the caller knows there is no other command in progress.
like, you either hold the lock or you're 100% sure nobody else is running a command, no guessing, no vibes-based concurrency. π
π§ SEE ALSO π§
- Kernel file
./drivers/platform/chrome/cros_ec_proto.c cros_ec_prepare_tx(9)cros_ec_check_result(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_get_host_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)
the whole friend group fr fr, go say hi to all of them π¦
and that's the page!! she lives in ./drivers/platform/chrome, she's dated October 2026, and she's out here in the cros_ec_get_...nt_wake_mask(9) era β mwah πβ¨ go get that wake mask bestie, ily π«Άππ
π¦ 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