1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct iio_buffer</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Industrial I/O driver developer's guide"><link rel="up" href="iiobuffer.html" title="Industrial I/O buffers"><link rel="prev" href="iiobuffer.html" title="Industrial I/O buffers"><link rel="next" href="API-iio-validate-scan-mask-onehot.html" title="iio_validate_scan_mask_onehot"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct iio_buffer</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="iiobuffer.html">Prev</a> </td><th width="60%" align="center"> Industrial I/O buffers </th><td width="20%" align="right"> <a accesskey="n" href="API-iio-validate-scan-mask-onehot.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-iio-buffer"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct iio_buffer — 
2  general buffer structure
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct iio_buffer {
5  int length;
6  int bytes_per_datum;
7  struct attribute_group * scan_el_attrs;
8  long * scan_mask;
9  bool scan_timestamp;
10  const struct iio_buffer_access_funcs * access;
11  struct list_head scan_el_dev_attr_list;
12  struct attribute_group scan_el_group;
13  wait_queue_head_t pollq;
14  bool stufftoread;
15  struct list_head demux_list;
16  void * demux_bounce;
17  struct list_head buffer_list;
18  struct kref ref;
19  unsigned int watermark;
20};  </pre></div><div class="refsect1"><a name="id-1.4.4.2.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">length</span></dt><dd><p>
21[DEVICE] number of datums in buffer
22      </p></dd><dt><span class="term">bytes_per_datum</span></dt><dd><p>
23[DEVICE] size of individual datum including timestamp
24      </p></dd><dt><span class="term">scan_el_attrs</span></dt><dd><p>
25[DRIVER] control of scan elements if that scan mode
26control method is used
27      </p></dd><dt><span class="term">scan_mask</span></dt><dd><p>
28[INTERN] bitmask used in masking scan mode elements
29      </p></dd><dt><span class="term">scan_timestamp</span></dt><dd><p>
30[INTERN] does the scan mode include a timestamp
31      </p></dd><dt><span class="term">access</span></dt><dd><p>
32[DRIVER] buffer access functions associated with the
33implementation.
34      </p></dd><dt><span class="term">scan_el_dev_attr_list</span></dt><dd><p>
35[INTERN] list of scan element related attributes.
36      </p></dd><dt><span class="term">scan_el_group</span></dt><dd><p>
37[DRIVER] attribute group for those attributes not
38created from the iio_chan_info array.
39      </p></dd><dt><span class="term">pollq</span></dt><dd><p>
40[INTERN] wait queue to allow for polling on the buffer.
41      </p></dd><dt><span class="term">stufftoread</span></dt><dd><p>
42[INTERN] flag to indicate new data.
43      </p></dd><dt><span class="term">demux_list</span></dt><dd><p>
44[INTERN] list of operations required to demux the scan.
45      </p></dd><dt><span class="term">demux_bounce</span></dt><dd><p>
46[INTERN] buffer for doing gather from incoming scan.
47      </p></dd><dt><span class="term">buffer_list</span></dt><dd><p>
48[INTERN] entry in the devices list of current buffers.
49      </p></dd><dt><span class="term">ref</span></dt><dd><p>
50[INTERN] reference count of the buffer.
51      </p></dd><dt><span class="term">watermark</span></dt><dd><p>
52[INTERN] number of datums to wait for poll/read.
53      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="iiobuffer.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="iiobuffer.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-iio-validate-scan-mask-onehot.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> Industrial I/O buffers  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">iio_validate_scan_mask_onehot</span></td></tr></table></div></body></html>
54