msa311_wait_for_next_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ msa311_wait_for_next_data ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this little cutie lives in the kernel, and it's the function you call when you're like "pls, i just woke up, give me the next accel data whenever it's ready" β€” that's the whole vibe. she waits. she's patient. she's literally the after-resume data bouncer 🫢


🌸 NAME 🌸

msa311_wait_for_next_data β€” wait for the next accel data to be available after resume ✨

Like, yes, that's it. That's her whole job. Iconic behaviour honestly πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int msa311_wait_for_next_data (struct msa311_priv *msa311 );

πŸŽ€ ARGUMENTS πŸŽ€

  • msa311 β€” the MSA311 internal private state πŸ’– like, the driver's own little diary of everything it knows about itself. you hand her that and she's good to go.

⭐ RETURN ⭐

  • 0 β€” slay, success, we ate πŸ“
  • -EINTR β€” the msleep got interrupted 😭 like someone rudely poked her mid-nap
  • -ERRNO β€” any other failures, no cap πŸ’€
fr fr, check your return values bestie β€” 0 means happy, the negatives mean go read your errno πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

all her besties, all in the same friend group, go read them too, iykyk 🌈


mwah πŸ’‹ that's the whole page. sourced straight from ./drivers/iio/accel, dated October 2026 β€” no cap, that's the version and the date, go off periodt πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from