iio_backend...ampling_freq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to the iio_backend...ampling_freq(9) page from the Kernel API Manual πŸ’– this one is literally about iio_backend_set_sampling_freq β€” Set channel sampling rate ✨ that's the whole assignment, no cap.

✨ SYNOPSIS ✨

the signature is giving β€œI set the sample rate for a channel” and it's right here:

int iio_backend_set_sampling_freq (struct iio_backend *back , unsigned
       int chan , u64 sample_rate_hz );

πŸ’… ARGUMENTS πŸ’…

  • back β€” the backend device 🫢 your main character struct.
  • chan β€” the channel number, i.e. which channel we're talking to πŸ’«
  • sample_rate_hz β€” the sample rate 🌸 yes, the rate of samples, as advertised.

🫢 RETURN 🫢

0 on success, and a negative error number on failure 😭 so if it's not zero, something went sideways β€” periodt.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/iio/industrialio-backend.c πŸ“ and the whole friend group is:


mwah πŸ’‹ this page is from the ./drivers/iio source, dated October 2026, and it's the iio_backend...ampling_freq(9) manual-page cutie. byeee πŸ¦‹

πŸ“¦ where this page comes from