Commit | Line | Data |
---|---|---|
47d23e36 MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _DMX_SET_BUFFER_SIZE: | |
4 | ||
586027ce | 5 | =================== |
47d23e36 MCC |
6 | DMX_SET_BUFFER_SIZE |
7 | =================== | |
8 | ||
15e7d615 | 9 | Name |
586027ce | 10 | ---- |
47d23e36 | 11 | |
586027ce | 12 | DMX_SET_BUFFER_SIZE |
47d23e36 | 13 | |
15e7d615 MCC |
14 | |
15 | Synopsis | |
47d23e36 MCC |
16 | -------- |
17 | ||
cf8076c3 MCC |
18 | .. c:function:: int ioctl( int fd, DMX_SET_BUFFER_SIZE, unsigned long size) |
19 | :name: DMX_SET_BUFFER_SIZE | |
47d23e36 | 20 | |
47d23e36 | 21 | |
15e7d615 | 22 | Arguments |
586027ce | 23 | --------- |
47d23e36 | 24 | |
cf8076c3 MCC |
25 | ``fd`` |
26 | File descriptor returned by :c:func:`open() <dvb-dmx-open>`. | |
47d23e36 | 27 | |
cf8076c3 MCC |
28 | ``size`` |
29 | Unsigned long size | |
47d23e36 | 30 | |
15e7d615 | 31 | Description |
586027ce MCC |
32 | ----------- |
33 | ||
34 | This ioctl call is used to set the size of the circular buffer used for | |
35 | filtered data. The default size is two maximum sized sections, i.e. if | |
36 | this function is not called a buffer size of 2 \* 4096 bytes will be | |
37 | used. | |
38 | ||
39 | ||
15e7d615 | 40 | Return Value |
47d23e36 MCC |
41 | ------------ |
42 | ||
43 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
44 | appropriately. The generic error codes are described at the | |
45 | :ref:`Generic Error Codes <gen-errors>` chapter. |