iio_validat..._mask_onehot(9)
okay bestie, welcome to the Kernel API Manual page for iio_validat..._mask_onehot(9) β and yes, the full function name in the NAME section is iio_validate_scan_mask_onehot. π
πΈ NAME πΈ
iio_validate_scan_mask_onehot β Validates that exactly one channel is selected. β¨
β¨ SYNOPSIS β¨
here's the exact signature, no cap:
bool iio_validate_scan_mask_onehot (struct iio_dev *indio_dev , const
unsigned long *mask );
π ARGUMENTS π
indio_devβ the iio device. π«Άmaskβ scan mask to be checked. π
π¦ DESCRIPTION π¦
so the vibe check here is simple: this returns true if exactly one bit is set in the scan mask, and false otherwise. π
It can be used for devices where only one channel can be active for sampling at a time β iykyk, one main character channel only. π
π SEE ALSO π
The kernel file is ./drivers/iio/industrialio-buffer.c, and here's the whole friend group:
iio_buffer_read(9)iio_buffer_poll(9)iio_buffer_wakeup_poll(9)iio_scan_mask_set(9)struct iio_demux_table(9)iio_push_to_buffers(9)iio_push_to_buffers_with_ts_unaligned(9)iio_buffer_release(9)iio_buffer_get(9)iio_buffer_put(9)iio_device_attach_buffer(9)
π source/version: ./drivers/iio Β· date: October 2026 β that's the cute little footer energy, bestie. bye! πβ¨
π¦ 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