iio_active_scan_mask_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is iio_active_scan_mask_index(9), straight outta the Kernel API Manual, and it's here to do one iconic little job: get the index of the active scan mask inside the available scan masks array. That's the whole vibe. πŸ’…βœ¨

✨ SYNOPSIS ✨

int iio_active_scan_mask_index (struct iio_dev *indio_dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • indio_dev β€” the IIO device containing the active and available scan masks. It's giving main character struct energy, and it's literally the thing you pass in. 🫢

πŸ’… RETURN πŸ’…

It returns the index. But if active_scan_mask is not set? Boom: -EINVAL. No index, just a little error moment. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/iio/industrialio-core.c is the place to peek, and if you're in your references era, here's the whole squad:


Cute sign-off time: source/version <./drivers/iio>, date October 2026, page iio_active_scan_mask_index(9). mwah, bye bestie! πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from