iio_gts_all_avail_scales(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iio_gts_all_avail_scales β€” the "show me every scale you got" helper

okay so picture this: it's a Kernel API Manual moment (yes bestie, that's the manual name, we're in the big leagues now) and this little function is out here doing the lord's work β€” it's the helper for listing all the available scales. literally its whole personality. ✨


🌸 NAME 🌸

iio_gts_all_avail_scales β€” helper for listing all available scales πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like, that's the whole signature. no cap, that's it. πŸ’…


πŸ‘‘ ARGUMENTS πŸ‘‘

  • gts β€” the gain time scale descriptor πŸ’– this is the main character, the thing you're asking about
  • vals β€” the returned array of supported scales ✨ this is where the good stuff gets handed back to you
  • type β€” type of returned scale values πŸŽ€ tells you what kind of scale values you just got
  • length β€” amount of returned values in array 🌸 so you know how many you're actually dealing with

⭐ RETURN ⭐

it hands you back a value suitable to be returned from read_avail, or a negative error 😭 (so, like, either slay or nope β€” nothing in between)


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” and speaking of which, this all lives in the kernel file ./drivers/iio/industrialio-gts-helper.c:


and that's the whole vibe check, bestie 🫢 this lil beauty ships out of ./drivers/iio, October 2026 edition β€” go forth and list those scales, you've got this πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from