iio_validat..._mask_onehot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


πŸ’– source/version: ./drivers/iio Β· date: October 2026 β€” that's the cute little footer energy, bestie. bye! πŸŽ€βœ¨

πŸ“¦ where this page comes from