cros_ec_get_...nt_wake_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 a struct cros_ec_device *. 🫢
  • mask β€” a uint32_t * that gets the result once the function returns 0. 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 🧚

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