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 | ||
5929cb17 | 18 | .. cpp:function:: ssize_t write(int fd, const void *buf, size_t count) |
47d23e36 | 19 | |
47d23e36 | 20 | |
15e7d615 | 21 | Arguments |
586027ce | 22 | --------- |
47d23e36 MCC |
23 | |
24 | .. flat-table:: | |
25 | :header-rows: 0 | |
26 | :stub-columns: 0 | |
27 | ||
28 | ||
29 | - .. row 1 | |
30 | ||
31 | - int fd | |
32 | ||
33 | - File descriptor returned by a previous call to open(). | |
34 | ||
35 | - .. row 2 | |
36 | ||
37 | - void \*buf | |
38 | ||
39 | - Pointer to the buffer containing the Transport Stream. | |
40 | ||
41 | - .. row 3 | |
42 | ||
43 | - size_t count | |
44 | ||
45 | - Size of buf. | |
46 | ||
47 | ||
15e7d615 | 48 | Description |
586027ce | 49 | ----------- |
47d23e36 | 50 | |
586027ce MCC |
51 | This system call is only provided by the logical device |
52 | /dev/dvb/adapter0/dvr0, associated with the physical demux device that | |
53 | provides the actual DVR functionality. It is used for replay of a | |
54 | digitally recorded Transport Stream. Matching filters have to be defined | |
55 | in the corresponding physical demux device, /dev/dvb/adapter0/demux0. | |
56 | The amount of data to be transferred is implied by count. | |
47d23e36 MCC |
57 | |
58 | ||
15e7d615 | 59 | Return Value |
586027ce MCC |
60 | ------------ |
61 | ||
47d23e36 MCC |
62 | .. flat-table:: |
63 | :header-rows: 0 | |
64 | :stub-columns: 0 | |
65 | ||
66 | ||
67 | - .. row 1 | |
68 | ||
69 | - ``EWOULDBLOCK`` | |
70 | ||
71 | - No data was written. This might happen if O_NONBLOCK was | |
72 | specified and there is no more buffer space available (if | |
73 | O_NONBLOCK is not specified the function will block until buffer | |
74 | space is available). | |
75 | ||
76 | - .. row 2 | |
77 | ||
78 | - ``EBUSY`` | |
79 | ||
80 | - This error code indicates that there are conflicting requests. The | |
81 | corresponding demux device is setup to receive data from the | |
82 | front- end. Make sure that these filters are stopped and that the | |
83 | filters with input set to DMX_IN_DVR are started. | |
84 | ||
85 | - .. row 3 | |
86 | ||
87 | - ``EBADF`` | |
88 | ||
89 | - fd is not a valid open file descriptor. |