linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about iio_dev.active_scan_mask
@ 2018-09-19 22:03 David Frey
  2018-09-20  8:33 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: David Frey @ 2018-09-19 22:03 UTC (permalink / raw)
  To: linux-iio

Hi,

I am looking at struct iio_dev in include/linux/iio/iio.h and the
active_scan_mask member is documented as:

@active_scan_mask:   [INTERN] union of all scan masks requested by buffers

I believe that this is a bitmap where if bit X is set, that means the
channel with scan_index == X is enabled for buffering.

I believe that "[INTERN]" means that this member should not be accessed
by a device driver, but I see many device drivers iterating over the
bits of this field.  Is my understanding incorrect?  Perhaps "[INTERN]"
means that the field can be read from the driver, but should not be written.

Please help me clear up my understanding.

Thanks,
David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-20 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-19 22:03 question about iio_dev.active_scan_mask David Frey
2018-09-20  8:33 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).