Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.dmx
0003 
0004 .. _DMX_SET_BUFFER_SIZE:
0005 
0006 ===================
0007 DMX_SET_BUFFER_SIZE
0008 ===================
0009 
0010 Name
0011 ----
0012 
0013 DMX_SET_BUFFER_SIZE
0014 
0015 Synopsis
0016 --------
0017 
0018 .. c:macro:: DMX_SET_BUFFER_SIZE
0019 
0020 ``int ioctl(int fd, DMX_SET_BUFFER_SIZE, unsigned long size)``
0021 
0022 Arguments
0023 ---------
0024 
0025 ``fd``
0026     File descriptor returned by :c:func:`open()`.
0027 
0028 ``size``
0029     Unsigned long size
0030 
0031 Description
0032 -----------
0033 
0034 This ioctl call is used to set the size of the circular buffer used for
0035 filtered data. The default size is two maximum sized sections, i.e. if
0036 this function is not called a buffer size of ``2 * 4096`` bytes will be
0037 used.
0038 
0039 Return Value
0040 ------------
0041 
0042 On success 0 is returned.
0043 
0044 On error -1 is returned, and the ``errno`` variable is set
0045 appropriately.
0046 
0047 The generic error codes are described at the
0048 :ref:`Generic Error Codes <gen-errors>` chapter.