iio_gts_build_avail_tables(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iio_gts_build_avail_tables β€” the Kernel API Manual, bestie edition πŸŽ€

okay so picture this: you're deep in the kernel, you open up the manual page for iio_gts_build_avail_tables (yes that's the function, yes the manual is called Kernel API Manual, and yes we're getting into it) and it's giving... walls of text. don't worry babe, I got you. ✨


🌸 NAME 🌸

iio_gts_build_avail_tables β€” literally just builds you the tables of available scales and integration times. that's it. that's the whole job. iconic behavior honestly. πŸ‘‘


✨ SYNOPSIS ✨

int iio_gts_build_avail_tables(struct iio_gts *gts);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gts β€” the gain time scale descriptor πŸ’– this is the lil struct that holds all the info, she's the main character here.

🧚 DESCRIPTION 🧚

so what does she do? she builds the tables that can represent the available scales and the available integration times. the availability tables are built based on the originally given gain and given time tables β€” like, they come from what you handed her, no cap.

and when both the time table and the gain table are given? this is what you get, bestie:

  1. a set of sorted tables representing available scales for each supported integration time 🌈
  2. a single sorted table listing all the unique scales that any combination of supported gains and times can provide πŸ’«
  3. a sorted table of supported integration times ⭐

and after these tables are built?? you can use the iio_gts_all_avail_scales, iio_gts_avail_scales_for_time, and iio_gts_avail_times helpers to implement the read_avail operations. slay. 🫢


πŸ™ˆ NOTE πŸ™ˆ

⚠️ okay this part matters, don't skip it: the space allocated for the tables must be freed using iio_gts_purge_avail_tables when the tables are no longer needed. like, that memory is not gonna clean itself up. free her. periodt. πŸ’€

πŸ”₯ RETURN πŸ”₯

0 on success. ✨ that's the only return value listed and honestly? we love a simple queen.


πŸ’œ SEE ALSO πŸ’œ

so many friends, so many cross-references, let's go through the whole group chat πŸ’…:


and that's the whole page, babe!! πŸ“ big kiss from ./drivers/iio, dated October 2026 β€” go build those tables and remember to free them πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from