iio_gts_find_sel_by_gain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the iio_gts_find_sel_by_gain(9) page from the Kernel API Manual β€” this is the little helper that goes looking for the selector matching a given HW-gain, and honestly? iconic. πŸ’…βœ¨

🌸 NAME 🌸

iio_gts_find_sel_by_gain β€” find selector corresponding to a HW-gain. that’s the whole vibe: you bring the HW-gain, it finds the matching selector. no cap. 🫢

✨ SYNOPSIS ✨

the signature is giving:

int iio_gts_find_sel_by_gain (struct iio_gts *gts , int gain );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gts β€” Gain time scale descriptor. that’s the descriptor bestie, periodt.
  • gain β€” HW-gain for which matching selector is searched for. literally the gain you’re trying to match. πŸ’–

πŸ’– RETURN πŸ’–

a selector matching given HW-gain or -EINVAL if selector was not found. so if it can’t find one? it hits you with -EINVAL, no cap. 😭

🌈 SEE ALSO 🌈

bestie, the whole crew is tagged in β€” Kernel file ./drivers/iio/industrialio-gts-helper.c and these legends:

🫢 that’s the whole page, bestie β€” from the ./drivers/iio source, October 2026, Kernel API Manual edition. periodt. πŸ’–
πŸ“¦ where this page comes from