iio_gts_valid_gain(9)
π iio_gts_valid_gain β Kernel API Manual, bestie edition β¨
okay so real talk, this page is from the Kernel API Manual and it's literally just one tiny little vibe-check function, but it's so important, so let's get into it π
β¨ NAME β¨
iio_gts_valid_gain β check if given HW-gain is valid π
like, that's it. that's the whole job. it checks a gain. for validity. iconic behavior honestly π«Ά
πΈ SYNOPSIS πΈ
bool iio_gts_valid_gain (struct iio_gts *gts , int gain );
it gives back a bool, so you already know it's a yes-or-no situation, no in-between, no "it's complicated" π
π¦ ARGUMENTS π¦
gtsβ the Gain time scale descriptor π this is the main character, the context object that knows all the gain/time-scale loregainβ the HW-gain you want to check π₯ like, the actual number you're asking about
π RETURN π
- True β the given time is supported by the device β
- False β nope, not supported, try again bestie π
ok ngl the original literally says "True if given time is supported by device. False if not." β yes, time, on a page about gain. we're not gonna fix it, we're just gonna notice it and move on π iykyk
π SEE ALSO π
- Kernel file
./include/linux/iio/iio-gts-helper.hβ the whole friend group lives here π§ struct iio_gain_sel_pair(9)β¨struct iio_itime_sel_mul(9)β¨iio_gts_find_int_time_by_sel(9)β¨iio_gts_find_sel_by_int_time(9)β¨iio_gts_valid_time(9)β¨
like go read those too, they're all super related, no cap π
and that's the whole page, bestie!! π written under ./include/linux/iio, dated October 2026, and yeah the footer is literally just iio_gts_valid_gain(9) again because the man page said so and we respect the lore ππ slay, go validate some gains π
π¦ 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