iio_gts_bui..._scale_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:

  1. A set of tables representing available scales for each supported integration time. ✨
  2. 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:


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