18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci.. c:namespace:: DTV.dmx
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci.. _DMX_SET_BUFFER_SIZE:
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci===================
78c2ecf20Sopenharmony_ciDMX_SET_BUFFER_SIZE
88c2ecf20Sopenharmony_ci===================
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciName
118c2ecf20Sopenharmony_ci----
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciDMX_SET_BUFFER_SIZE
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciSynopsis
168c2ecf20Sopenharmony_ci--------
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci.. c:macro:: DMX_SET_BUFFER_SIZE
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci``int ioctl(int fd, DMX_SET_BUFFER_SIZE, unsigned long size)``
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciArguments
238c2ecf20Sopenharmony_ci---------
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci``fd``
268c2ecf20Sopenharmony_ci    File descriptor returned by :c:func:`open()`.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci``size``
298c2ecf20Sopenharmony_ci    Unsigned long size
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciDescription
328c2ecf20Sopenharmony_ci-----------
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciThis ioctl call is used to set the size of the circular buffer used for
358c2ecf20Sopenharmony_cifiltered data. The default size is two maximum sized sections, i.e. if
368c2ecf20Sopenharmony_cithis function is not called a buffer size of ``2 * 4096`` bytes will be
378c2ecf20Sopenharmony_ciused.
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciReturn Value
408c2ecf20Sopenharmony_ci------------
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciOn success 0 is returned.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciOn error -1 is returned, and the ``errno`` variable is set
458c2ecf20Sopenharmony_ciappropriately.
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciThe generic error codes are described at the
488c2ecf20Sopenharmony_ci:ref:`Generic Error Codes <gen-errors>` chapter.
49