cros_ec_acc...y_read_avail(9)
β¨ cros_ec_accel_legacy_read_avail(9) β¨
okay so bestie, welcome to the Kernel API Manual, section 9 π
this is the glow-up page for cros_ec_accel_legacy_read_avail and we're gonna get you fully caught up. no cap.
πΈ NAME πΈ
cros_ec_accel_legacy_read_avail β get available values π«Ά like, literally, it fetches the list of values that are available. that's the whole vibe.
π¦ SYNOPSIS π¦
int cros_ec_accel_legacy_read_avail (struct iio_dev *indio_dev , struct
iio_chan_spec const *chan , const int **vals , int *type , int *length ,
long mask );
she takes six arguments and returns an int, and yes every single one of them matters, we do not skip π
π ARGUMENTS π
indio_devβ pointer to state information for device π§ this is the device's whole situation, its state, its lore.chanβ channel specification structure table π the table that says what channel we're talking about.valsβ list of available values β this is where the available values live. iconic.typeβ type of data returned π₯ tells you what kind of data is coming back at you.lengthβ number of data returned in the array π the count, the headcount, how many things are in the array.maskβ specifies which values to be requested π― like a filter for which values you actually want. picky but valid.
π RETURN π
an error code or IIO_AVAIL_LIST π so like β either something went wrong and you get an error code, or it slays and you get IIO_AVAIL_LIST. those are the two options, no in-between, periodt.
π SEE ALSO π
- Kernel file
./drivers/iio/accel/cros_ec_accel_legacy.cπ go read the source, iykyk, it's giving main character energy.
ngl bestie, that's the whole page β short and sweet and absolutely ate. don't invent extra flags, there aren't any, and don't come for me about it π
mwah π this came from ./drivers/iio/accel and it's dated October 2026 β that's the source, that's the version, that's the date, and that's the tea. ππ§ββοΈ
π¦ 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