0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.video
0003
0004 .. _video_fwrite:
0005
0006 =================
0007 dvb video write()
0008 =================
0009
0010 Name
0011 ----
0012
0013 dvb video write()
0014
0015 .. attention:: This ioctl is deprecated.
0016
0017 Synopsis
0018 --------
0019
0020 .. c:function:: size_t write(int fd, const void *buf, size_t count)
0021
0022 Arguments
0023 ---------
0024
0025 .. flat-table::
0026 :header-rows: 0
0027 :stub-columns: 0
0028
0029 - .. row 1
0030
0031 - int fd
0032
0033 - File descriptor returned by a previous call to open().
0034
0035 - .. row 2
0036
0037 - void \*buf
0038
0039 - Pointer to the buffer containing the PES data.
0040
0041 - .. row 3
0042
0043 - size_t count
0044
0045 - Size of buf.
0046
0047 Description
0048 -----------
0049
0050 This system call can only be used if VIDEO_SOURCE_MEMORY is selected
0051 in the ioctl call VIDEO_SELECT_SOURCE. The data provided shall be in
0052 PES format, unless the capability allows other formats. If O_NONBLOCK
0053 is not specified the function will block until buffer space is
0054 available. The amount of data to be transferred is implied by count.
0055
0056 Return Value
0057 ------------
0058
0059 .. flat-table::
0060 :header-rows: 0
0061 :stub-columns: 0
0062
0063 - .. row 1
0064
0065 - ``EPERM``
0066
0067 - Mode VIDEO_SOURCE_MEMORY not selected.
0068
0069 - .. row 2
0070
0071 - ``ENOMEM``
0072
0073 - Attempted to write more data than the internal buffer can hold.
0074
0075 - .. row 3
0076
0077 - ``EBADF``
0078
0079 - fd is not a valid open file descriptor.