iio_gts_pur..._scale_table(9)
π iio_gts_purge_avail_scale_table(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one lives in ./drivers/iio and it's literally the cleanup queen of the IIO gain-time-scale world. she frees things. that's her whole vibe. π
β¨ NAME β¨
iio_gts_purge_avail_scale_table β free-up the available scale tables π§Ήπ
like, she takes out the trash (the trash being memory, and the trash can being your kernel) and honestly? iconic behavior.
πΈ SYNOPSIS πΈ
void iio_gts_purge_avail_scale_table (struct iio_gts *gts );
no return value, no drama, no notes. she just does the thing and dips. π
π¦ ARGUMENTS π¦
gtsβ Gain time scale descriptor π«Ά β this is the lil struct that's holding onto all the scale-table memory, and she's about to set it free.
β DESCRIPTION β
Free the space reserved by iio_gts_build_avail_scale_table.
that's it. that's the whole paragraph. she's the inverse of iio_gts_build_avail_scale_table β you built it, now you gotta purge it, otherwise that's a leak and leaks are not the moment. π
lowkey a reminder that every iio_gts_build_avail_scale_table call needs its matching purge. balanced. like all things should be. βοΈβ¨
π₯ SEE ALSO π₯
Kernel file ./drivers/iio/industrialio-gts-helper.c β go read it, it's giving main character energy π
and the whole friend group, no cap:
iio_gts_get_gain(9)gain_get_scale_fraction(9)iio_gts_total_gain_to_scale(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_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)
kay that's the whole page bestie, go free that memory and slay πβ¨
shoutout to the source ./drivers/iio, dated October 2026 β that's the version stamp and the date, both accounted for, 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