iio_scan_mask_set(9)
β¨ iio_scan_mask_set β¨
okay so bestie, welcome to the iio_scan_mask_set(9) page from the Kernel API Manual β this is the little function that sets a particular bit in the scan mask π
and we're gonna get into it fr fr.
πΈ NAME πΈ
iio_scan_mask_set β set particular bit in the scan mask π
π¦ SYNOPSIS π¦
int iio_scan_mask_set (struct iio_dev *indio_dev , struct iio_buffer
*buffer , int bit );
like literally that's the whole signature, no cap π«Ά
π ARGUMENTS π
indio_devβ the iio device π that's your main character right therebufferβ the buffer whose scan mask we are interested in π§ (yes, this buffer's mask, we're being specific)bitβ the bit to be set. periodt. π
π₯ DESCRIPTION π₯
okay so here's the vibe check: at this point we have no way of knowing what other buffers might request π β like we literally cannot see them, they haven't texted back β hence this code only verifies that the individual buffer's request is plausible β¨. that's it. that's the whole check. don't come for it, it's doing its best π
ngl bestie, "plausible" is doing a LOT of heavy lifting in that sentence and you should not read it as "guaranteed correct" π
π SEE ALSO π
Kernel file ./drivers/iio/industrialio-buffer.c β and the whole friend group:
iio_buffer_read(9)iio_buffer_poll(9)iio_buffer_wakeup_poll(9)struct iio_demux_table(9)iio_validate_scan_mask_onehot(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)
π« and that's the tea π« β this whole page lives in ./drivers/iio, dated October 2026, and it's brought to you as iio_scan_mask_set(9). slay, go set that bit, ily ππ¦π
π¦ 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