iio_gts_find..._by_int_time(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iio_gts_find_sel_by_int_time(9) β€” yes bestie, that's a lot of underscores

okay so this is from the Kernel API Manual, and the star of the show is iio_gts_find..._by_int_time(9) β€” literally the function that goes "hey, you gave me an integration time, lemme find you the matching selector" πŸŽ€


✨ NAME ✨

iio_gts_find_sel_by_int_time β€” find the selector that matches an integration time, no cap πŸ”


πŸ¦‹ SYNOPSIS πŸ¦‹

int iio_gts_find_sel_by_int_time (struct iio_gts *gts , int time );

like, that's the whole vibe. two args, one int back. slay πŸ’…


🌸 ARGUMENTS 🌸

  • gts β€” the Gain time scale descriptor, aka the little info-hub holding all your gain/time scale data 🫢
  • time β€” the integration time you're hunting a matching selector for. this is the thing we're looking up, bestie ⏱️

🌈 RETURN 🌈

it hands you back a selector that matches the integration time you asked about β€” iconic behavior ✨

and if there's no match? it gives you -EINVAL instead. so if you see -EINVAL just know the selector was not found, no notes 😭

so fr fr: success = a matching selector, failure = -EINVAL. don't get it twisted πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


aaaand that's the page, bestie πŸ“ this gem lives over at ./include/linux/iio, dated October 2026, and it's filed under iio_gts_find..._by_int_time(9) β€” go off, kernel docs πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from