2016-07-05 21:37:31 +08:00
|
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
|
|
.. _dmx_fread:
|
|
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
================
|
2016-07-05 21:37:31 +08:00
|
|
|
|
DVB demux read()
|
|
|
|
|
================
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
Name
|
2016-07-05 18:58:48 +08:00
|
|
|
|
----
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
DVB demux read()
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
|
|
|
|
|
Synopsis
|
2016-07-05 21:37:31 +08:00
|
|
|
|
--------
|
|
|
|
|
|
2016-07-06 02:22:59 +08:00
|
|
|
|
.. cpp:function:: size_t read(int fd, void *buf, size_t count)
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
Arguments
|
2016-07-05 18:58:48 +08:00
|
|
|
|
---------
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
|
|
|
|
.. flat-table::
|
|
|
|
|
:header-rows: 0
|
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
|
|
- int fd
|
|
|
|
|
|
|
|
|
|
- File descriptor returned by a previous call to open().
|
|
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
|
|
|
|
|
- void \*buf
|
|
|
|
|
|
|
|
|
|
- Pointer to the buffer to be used for returned filtered data.
|
|
|
|
|
|
|
|
|
|
- .. row 3
|
|
|
|
|
|
|
|
|
|
- size_t count
|
|
|
|
|
|
|
|
|
|
- Size of buf.
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
Description
|
2016-07-05 18:58:48 +08:00
|
|
|
|
-----------
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
This system call returns filtered data, which might be section or PES
|
|
|
|
|
data. The filtered data is transferred from the driver’s internal
|
|
|
|
|
circular buffer to buf. The maximum amount of data to be transferred is
|
|
|
|
|
implied by count.
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
Return Value
|
2016-07-05 18:58:48 +08:00
|
|
|
|
------------
|
|
|
|
|
|
2016-08-19 19:00:44 +08:00
|
|
|
|
.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
|
|
|
|
|
|
2016-07-05 21:37:31 +08:00
|
|
|
|
.. flat-table::
|
|
|
|
|
:header-rows: 0
|
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
|
|
- ``EWOULDBLOCK``
|
|
|
|
|
|
|
|
|
|
- No data to return and O_NONBLOCK was specified.
|
|
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
|
|
|
|
|
- ``EBADF``
|
|
|
|
|
|
|
|
|
|
- fd is not a valid open file descriptor.
|
|
|
|
|
|
|
|
|
|
- .. row 3
|
|
|
|
|
|
|
|
|
|
- ``ECRC``
|
|
|
|
|
|
|
|
|
|
- Last section had a CRC error - no data returned. The buffer is
|
|
|
|
|
flushed.
|
|
|
|
|
|
|
|
|
|
- .. row 4
|
|
|
|
|
|
|
|
|
|
- ``EOVERFLOW``
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
- .. row 5
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- The filtered data was not read from the buffer in due time,
|
|
|
|
|
resulting in non-read data being lost. The buffer is flushed.
|
|
|
|
|
|
|
|
|
|
- .. row 6
|
|
|
|
|
|
|
|
|
|
- ``ETIMEDOUT``
|
|
|
|
|
|
|
|
|
|
- The section was not loaded within the stated timeout period. See
|
|
|
|
|
ioctl DMX_SET_FILTER for how to set a timeout.
|
|
|
|
|
|
|
|
|
|
- .. row 7
|
|
|
|
|
|
|
|
|
|
- ``EFAULT``
|
|
|
|
|
|
|
|
|
|
- The driver failed to write to the callers buffer due to an invalid
|
|
|
|
|
\*buf pointer.
|