iio_active_scan_mask_index(9)
πΈ 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:
iio_device_id(9)iio_buffer_enabled(9)iio_find_channel_from_si(9)iio_device_set_clock(9)iio_device_get_clock(9)iio_get_time_ns(9)iio_read_mount_matrix(9)iio_format_value(9)__iio_str_to_fixpoint(9)iio_str_to_fixpoint(9)iio_free_chan_devattr_list(9)iio_device_alloc(9)iio_device_free(9)devm_iio_device_alloc(9)iio_chrdev_open(9)iio_chrdev_release(9)iio_device_unregister(9)__iio_dev_mode_lock(9)__iio_dev_mode_unlock(9)iio_device_get_current_mode(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms