Commit | Line | Data |
---|---|---|
47d23e36 MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _dmx_fwrite: | |
4 | ||
586027ce | 5 | ================= |
47d23e36 MCC |
6 | DVB demux write() |
7 | ================= | |
8 | ||
15e7d615 | 9 | Name |
586027ce | 10 | ---- |
47d23e36 | 11 | |
586027ce | 12 | DVB demux write() |
47d23e36 | 13 | |
15e7d615 MCC |
14 | |
15 | Synopsis | |
47d23e36 MCC |
16 | -------- |
17 | ||
1b81f010 | 18 | .. c:function:: ssize_t write(int fd, const void *buf, size_t count) |
cf8076c3 | 19 | :name: dvb-dmx-write |
47d23e36 | 20 | |
15e7d615 | 21 | Arguments |
586027ce | 22 | --------- |
47d23e36 | 23 | |
cf8076c3 MCC |
24 | ``fd`` |
25 | File descriptor returned by a previous call to :c:func:`open() <dvb-ca-open>`. | |
47d23e36 | 26 | |
cf8076c3 MCC |
27 | ``buf`` |
28 | Buffer with data to be written | |
47d23e36 | 29 | |
cf8076c3 MCC |
30 | ``count`` |
31 | Number of bytes at the buffer | |
47d23e36 | 32 | |
15e7d615 | 33 | Description |
586027ce | 34 | ----------- |
47d23e36 | 35 | |
586027ce MCC |
36 | This system call is only provided by the logical device |
37 | /dev/dvb/adapter0/dvr0, associated with the physical demux device that | |
38 | provides the actual DVR functionality. It is used for replay of a | |
39 | digitally recorded Transport Stream. Matching filters have to be defined | |
40 | in the corresponding physical demux device, /dev/dvb/adapter0/demux0. | |
41 | The amount of data to be transferred is implied by count. | |
47d23e36 MCC |
42 | |
43 | ||
15e7d615 | 44 | Return Value |
586027ce MCC |
45 | ------------ |
46 | ||
16dac354 MCC |
47 | .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| |
48 | ||
47d23e36 MCC |
49 | .. flat-table:: |
50 | :header-rows: 0 | |
51 | :stub-columns: 0 | |
52 | ||
47d23e36 MCC |
53 | - .. row 1 |
54 | ||
55 | - ``EWOULDBLOCK`` | |
56 | ||
57 | - No data was written. This might happen if O_NONBLOCK was | |
58 | specified and there is no more buffer space available (if | |
59 | O_NONBLOCK is not specified the function will block until buffer | |
60 | space is available). | |
61 | ||
62 | - .. row 2 | |
63 | ||
64 | - ``EBUSY`` | |
65 | ||
66 | - This error code indicates that there are conflicting requests. The | |
67 | corresponding demux device is setup to receive data from the | |
68 | front- end. Make sure that these filters are stopped and that the | |
69 | filters with input set to DMX_IN_DVR are started. | |
70 | ||
71 | - .. row 3 | |
72 | ||
73 | - ``EBADF`` | |
74 | ||
75 | - fd is not a valid open file descriptor. |