cros_ec_sen...til_not_busy(9)
π cros_ec_sen...til_not_busy(9) β a Kernel API Manual moment π
okay so bestie, welcome to section 9 of the Kernel API Manual, where we talk about cros_ec_sen...til_not_busy (yes the title is doing the whole truncated-name thing, she's mysterious like that β¨). this one is a function page and it's lowkey iconic for how much it does with so little.
πΈ NAME πΈ
cros_ec_sensors_read_until_not_busy β literally just read until is not busy. that's it. that's the whole vibe. she reads, she waits, she stops when the busy-ness is over π
π¦ SYNOPSIS π¦
int cros_ec_sensors_read_until_not_busy (struct
cros_ec_sensors_core_state *st );
so she takes one argument, returns an int, and her whole personality is in that name fr fr π
β¨ ARGUMENTS β¨
stβ pointer to state information for device. that's your state bestie, thestruct cros_ec_sensors_core_state *of it all. she holds the info, you hold the pointer, everybody slays π«Ά
π DESCRIPTION π
Read from EC status byte until it reads not busy. π₯
that's the whole bit β she keeps reading the status byte and reading the status byte and reading the status byte until the answer comes back not busy. no cap, that's the entire loop energy. she is patient. she is persistent. she is not leaving until that byte says what she needs to hear ππ
π RETURN π
- 8-bit status if ok β a little status snack, 8 bits of success π
-errnoon failure β things went sideways, and the errno tells you how π
β SEE ALSO β
okay this section is a whole group chat, like she has so many friends, i'm obsessed:
- Kernel file
./drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.cβ go read the source, it's giving main character π cros_ec_sensors_core_init(9)cros_ec_sensors_core_register(9)cros_ec_motion_send_host_cmd(9)cros_ec_sensors_idx_to_reg(9)cros_ec_sensors_read_data_unsafe(9)β yes bestie the name says unsafe, be careful, i don't make the rules π¨cros_ec_sensors_read_lpc(9)cros_ec_sensors_read_cmd(9)cros_ec_sensors_capture(9)cros_ec_sensors_core_read(9)cros_ec_sensors_core_read_avail(9)cros_ec_sensors_core_write(9)
ngl if you're calling this in a hot loop, may the busy bit clear fast and may your errno stay unset π§π
and that's the page!! this cutie lives over at ./drivers/iio/common/cros_ec_s..., the file date is October 2026, and she's still serving cros_ec_sen...til_not_busy(9) realness. mwah, that's a wrap ππβ¨
π¦ 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