iio_gts_find...el_for_scale(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 iio_gts_find_gain_time_sel_for_scale β€” iio_gts_find...el_for_scale(9) 🌸

okay bestie, welcome to the <pink>Kernel API Manual</pink> for iio_gts_find_gain_time_sel_for_scale, literally the function whose name got so long the header had to abbreviate it to iio_gts_find...el_for_scale(9). we don't judge, we respect the hustle πŸ’…


✨ NAME ✨

iio_gts_find_gain_time_sel_for_scale β€” Fetch gain and time selectors for scale πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int iio_gts_find_gain_time_sel_for_scale (struct iio_gts *gts , int
       scale_int , int scale_nano , int *gain_sel , int *time_sel );

πŸ’– ARGUMENTS πŸ’–

  • gts β€” the Gain time scale descriptor, aka the main character struct of this whole operation πŸ‘‘
  • scale_int β€” the Integral part of the scale (typically val1), i.e. the whole-number bit, no cap ✨
  • scale_nano β€” the Fractional part of the scale (nano or ppb) β€” the tiny little sliver of the number 🧚
  • gain_sel β€” Pointer to value where gain selector is stored. give it a pointer and it'll fill it in, obsessed 🫢
  • time_sel β€” Pointer to value where time selector is stored. same deal, but for time ⭐

🌈 DESCRIPTION 🌈

so basically this one is a Wrapper around iio_gts_find_gain_for_scale_using_time β€” it goes and fetches the gain and time selectors for a given scale for you. it's giving "middle management but make it helpful". you hand it a scale, it hands back the selectors. iconic behaviour, honestly πŸ”₯


πŸ’€ RETURN πŸ’€

0 on success and -EINVAL on error. that's it, that's the whole vibe check. if you get the -EINVAL bestie, something was not it πŸ™ˆ


⭐ SEE ALSO ⭐

Kernel file ./drivers/iio/industrialio-gts-helper.c β€” go read the source, iykyk πŸ“–

and the whole friend group of related functions, all of which are literally right there:


ok that's the whole page bestie, go forth and select your gains πŸ’œ

and that's a wrap, mwah πŸ’‹ this one shipped from ./drivers/iio, dated October 2026, and it goes by iio_gts_find...el_for_scale(9) β€” abbreviated name, full main character energy. slay πŸŽ€βœ¨

πŸ“¦ where this page comes from