iio_gts_bui..._scale_table(9)
πΈ iio_gts_build_avail_scale_table β aka the header that got cut off π
okay so bestie, this page lives in the Kernel API Manual, section 9 (yes, the header up top literally reads iio_gts_bui..._scale_table(9) β it got truncated mid-name, tragic, but we move). The star of the show is iio_gts_build_avail_scale_table, and it's literally about building tables of available scales. icon behavior only.
β¨ NAME β¨
iio_gts_build_avail_scale_table β create tables of available scales π
π¦ SYNOPSIS π¦
int iio_gts_build_avail_scale_table (struct iio_gts *gts );
π ARGUMENTS π
gtsβ the Gain time scale descriptor. that's it, that's the whole argument list, she's low maintenance π
π DESCRIPTION π
so what does she actually do? she builds the tables that can represent the available scales, based on the originally given gain and time tables. when both the time and gain tables are given, this is what you get:
- A set of tables representing available scales for each supported integration time. β¨
- A single table listing all the unique scales that any combination of supported gains and times can provide. π₯
not her serving you two whole table flavors at once π ate and left no crumbs.
β οΈ NOTE β οΈ
real talk: the space allocated for these tables must be freed using iio_gts_purge_avail_scale_table when the tables are no longer needed. no cap, do not ghost your allocations, that's how you get leaks π
β RETURN β
0 on success. that's the whole return value, she's simple like that π
π§ SEE ALSO π§
Kernel file ./drivers/iio/industrialio-gts-helper.c, plus this whole friend group:
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_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_all_avail_scales(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)
okay that's the whole page bestie, go free your tables and slay π«Ά
sign-off time: this one comes from the kernel source at ./drivers/iio, dated October 2026, and it's serving section 9 of the Kernel API Manual β mwah, periodt ππ
π¦ 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