iio_gts_avail_times(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iio_gts_avail_times(9) πŸ’…

okay so this is a page from the Kernel API Manual, and bestie, we're talking about iio_gts_avail_times β€” the little helper that does the literal most for you: listing out all the available integration times. no cap, that's the whole vibe. ✨


🌸 NAME 🌸

iio_gts_avail_times β€” your fave helper for listing available integration times 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int iio_gts_avail_times (struct iio_gts *gts , const int **vals , int
*type , int *length );

like, look at that signature. it's giving "small function, big responsibilities" energy. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gts β€” the Gain time scale descriptor 🧚 like, this is the main character of the whole situation.
  • vals β€” the returned array of supported times. yes bestie, this is where the actual times come back out. ⭐
  • type β€” the type of returned scale values. gotta know what flavour of numbers we're dealing with, iykyk.
  • length β€” the amount of returned values in your array. so you know exactly how many lil guys you got. πŸ”₯

πŸ’– RETURN πŸ’–

returns a value that's suitable to be returned straight from read_avail, or a negative error if things go sideways. 😭 so either you slayed or you got an error code, no in-between fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

there's a whole squad here, and honestly they ate. the Kernel file lives at ./drivers/iio/industrialio-gts-helper.c, and here's everybody else chilling in the group chat:


and that's the whole page, bestie! this one shipped from ./drivers/iio back in October 2026, and honestly? iconic. go read some kernel source, ily, bye πŸ’œπŸŒˆπŸŽ€

πŸ“¦ where this page comes from