Merge tag 'tegra-for-4.8-i2c' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[cascardo/linux.git] / Documentation / media / uapi / dvb / dmx-fwrite.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _dmx_fwrite:
4
5 =================
6 DVB demux write()
7 =================
8
9 Name
10 ----
11
12 DVB demux write()
13
14
15 Synopsis
16 --------
17
18 .. c:function:: ssize_t write(int fd, const void *buf, size_t count)
19     :name: dvb-dmx-write
20
21 Arguments
22 ---------
23
24 ``fd``
25   File descriptor returned by a previous call to :c:func:`open() <dvb-ca-open>`.
26
27 ``buf``
28      Buffer with data to be written
29
30 ``count``
31     Number of bytes at the buffer
32
33 Description
34 -----------
35
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.
42
43
44 Return Value
45 ------------
46
47 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
48
49 .. flat-table::
50     :header-rows:  0
51     :stub-columns: 0
52
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.