Merge remote-tracking branch 'kspp/for-next/kspp'
[deliverable/linux.git] / Documentation / media / uapi / dvb / audio-fwrite.rst
CommitLineData
47d23e36
MCC
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _audio_fwrite:
4
586027ce 5=================
47d23e36
MCC
6DVB audio write()
7=================
8
15e7d615 9Name
586027ce 10----
47d23e36 11
586027ce 12DVB audio write()
47d23e36 13
cf8076c3 14.. attention:: This ioctl is deprecated
15e7d615
MCC
15
16Synopsis
47d23e36
MCC
17--------
18
1b81f010 19.. c:function:: size_t write(int fd, const void *buf, size_t count)
cf8076c3 20 :name: dvb-audio-write
47d23e36 21
47d23e36 22
15e7d615 23Arguments
586027ce 24---------
47d23e36
MCC
25
26.. flat-table::
27 :header-rows: 0
28 :stub-columns: 0
29
30
31 - .. row 1
32
33 - int fd
34
35 - File descriptor returned by a previous call to open().
36
37 - .. row 2
38
39 - void \*buf
40
41 - Pointer to the buffer containing the PES data.
42
43 - .. row 3
44
45 - size_t count
46
47 - Size of buf.
48
49
15e7d615 50Description
586027ce 51-----------
47d23e36 52
586027ce
MCC
53This system call can only be used if AUDIO_SOURCE_MEMORY is selected
54in the ioctl call AUDIO_SELECT_SOURCE. The data provided shall be in
55PES format. If O_NONBLOCK is not specified the function will block
56until buffer space is available. The amount of data to be transferred is
57implied by count.
47d23e36
MCC
58
59
15e7d615 60Return Value
586027ce
MCC
61------------
62
47d23e36
MCC
63.. flat-table::
64 :header-rows: 0
65 :stub-columns: 0
66
67
68 - .. row 1
69
70 - ``EPERM``
71
72 - Mode AUDIO_SOURCE_MEMORY not selected.
73
74 - .. row 2
75
76 - ``ENOMEM``
77
78 - Attempted to write more data than the internal buffer can hold.
79
80 - .. row 3
81
82 - ``EBADF``
83
84 - fd is not a valid open file descriptor.
This page took 0.048694 seconds and 5 git commands to generate.