iio_gts_find..._time_by_sel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iio_gts_find_int_time_by_sel πŸ’…

okay bestie so this is a page from the Kernel API Manual and it's literally about finding an integration time that matches a selector β€” like, matching energy only for kernel structs ✨ buckle up, it's short but it eats πŸŽ€


🌸 NAME 🌸

iio_gts_find_int_time_by_sel β€” find the integration time that matches a selector, no cap πŸ”πŸ’–


✨ SYNOPSIS ✨

int iio_gts_find_int_time_by_sel (struct iio_gts *gts , int sel );

like yeah that's the whole signature, she's lowkey compact πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gts β€” the Gain time scale descriptor πŸ’… this is the struct you're digging through, she holds the info
  • sel β€” the selector you're searching for πŸ”Ž we're looking for the integration time that matches this one, iykyk

πŸ’€ RETURN πŸ’€

it returns the integration time matching the given selector πŸŽ€ …OR it returns -EINVAL if the integration time was not found 😭 so fr fr check your return value, bestie, because a missing time is not the vibe πŸ™ˆ

ngl -EINVAL is the "she's not here" of return codes πŸ’” handle it or suffer

🫢 SEE ALSO 🫢

  • Kernel file ./include/linux/iio/iio-gts-helper.h β€” go read the source, it's giving main character energy πŸ“–
  • struct iio_gain_sel_pair(9) β€” iconic struct, obsessed
  • struct iio_itime_sel_mul(9) β€” another one, we love her
  • iio_gts_find_sel_by_int_time(9) β€” the reverse-direction bestie πŸ”
  • iio_gts_valid_time(9) β€” vibe check for times βœ…
  • iio_gts_valid_gain(9) β€” vibe check for gains βœ…

🌈 and that's the whole page, periodt πŸ’œ brought to you by the kernel file at ./include/linux/iio, dated October 2026, slaying under the iio_gts_find..._time_by_sel(9) name forever and ever πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from