doc-rst: linux_tv: reformat all syscall pages
[deliverable/linux.git] / Documentation / linux_tv / media / dvb / video-fwrite.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _video_fwrite:
4
5 =================
6 dvb video write()
7 =================
8
9 NAME
10 ----
11
12 dvb video write()
13
14 SYNOPSIS
15 --------
16
17 .. c:function:: size_t write(int fd, const void *buf, size_t count)
18
19
20 ARGUMENTS
21 ---------
22
23 .. flat-table::
24 :header-rows: 0
25 :stub-columns: 0
26
27
28 - .. row 1
29
30 - int fd
31
32 - File descriptor returned by a previous call to open().
33
34 - .. row 2
35
36 - void \*buf
37
38 - Pointer to the buffer containing the PES data.
39
40 - .. row 3
41
42 - size_t count
43
44 - Size of buf.
45
46
47 DESCRIPTION
48 -----------
49
50 This system call can only be used if VIDEO_SOURCE_MEMORY is selected
51 in the ioctl call VIDEO_SELECT_SOURCE. The data provided shall be in
52 PES format, unless the capability allows other formats. If O_NONBLOCK
53 is not specified the function will block until buffer space is
54 available. The amount of data to be transferred is implied by count.
55
56
57 RETURN VALUE
58 ------------
59
60 .. flat-table::
61 :header-rows: 0
62 :stub-columns: 0
63
64
65 - .. row 1
66
67 - ``EPERM``
68
69 - Mode VIDEO_SOURCE_MEMORY not selected.
70
71 - .. row 2
72
73 - ``ENOMEM``
74
75 - Attempted to write more data than the internal buffer can hold.
76
77 - .. row 3
78
79 - ``EBADF``
80
81 - fd is not a valid open file descriptor.
This page took 0.058458 seconds and 5 git commands to generate.