iio_gts_buil...l_time_table(9)
π iio_gts_build_avail_time_table β¨
okay so this is a page from the Kernel API Manual and it's all about one lil function that builds you a table. yes bestie, a table. stay with me π«Ά
πΈ NAME πΈ
iio_gts_build_avail_time_table β builds the table of available integration times β¨
π¦ SYNOPSIS π¦
int iio_gts_build_avail_time_table(struct iio_gts *gts);
π ARGUMENTS π
gtsβ the Gain time scale descriptor π (this is the main character of the whole operation, ngl)
π DESCRIPTION π
So what this does is it builds the table that can represent the available times β the ones that get handed back to users through the read_avail-callback. That's it, that's the vibe. πβ¨
π₯ NOTE π₯
okay this part is important, do NOT skip it π the space allocated for the tables must be freed using iio_gts_purge_avail_time_table once the tables are no longer needed. no leaving it lying around, that's not the move π
β RETURN β
0 on success. that's the whole list, it's giving minimal and iconic π
π SEE ALSO π
Kernel file: ./drivers/iio/industrialio-gts-helper.c
and the 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_scale_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)
anyway that's the page π
it lives over in ./drivers/iio, stamped October 2026, and it's part of the Kernel API Manual β go build those tables and remember to free them, mwah π§π
π¦ 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