iio_gts_all_avail_scales(9)
π
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 aboutvalsβ the returned array of supported scales β¨ this is where the good stuff gets handed back to youtypeβ type of returned scale values π tells you what kind of scale values you just gotlengthβ 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:
iio_gts_get_gain(9)gain_get_scale_fraction(9)iio_gts_total_gain_to_scale(9)iio_gts_purge_avail_scale_table(9)iio_gts_build_avail_scale_table(9)iio_gts_build_avail_time_table(9)iio_gts_purge_avail_time_table(9)iio_gts_build_avail_tables(9)iio_gts_purge_avail_tables(9)devm_iio_gts_build_avail_tables(9)devm_iio_init_iio_gts(9)iio_gts_avail_scales_for_time(9)iio_gts_avail_times(9)iio_gts_find_sel_by_gain(9)iio_gts_find_gain_by_sel(9)iio_gts_get_min_gain(9)iio_find_closest_gain_low(9)iio_gts_find_gain_for_scale_using_time(9)iio_gts_find_gain_sel_for_scale_using_time(9)iio_gts_find_gain_time_sel_for_scale(9)iio_gts_get_total_gain(9)iio_gts_get_scale(9)iio_gts_find_new_gain_sel_by_old_gain_time(9)iio_gts_find_new_gain_by_old_gain_time(9)iio_gts_find_new_gain_by_gain_time_min(9)
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
- 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