cros_ec_acc...y_read_avail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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