1 .. -*- coding: utf-8; mode: rst -*-
18 .. cpp:function:: int open(const char *deviceName, int flags)
31 - const char \*deviceName
33 - Name of demux device.
39 - A bit-wise OR of the following flags:
44 - O_RDWR read/write access
49 - O_NONBLOCK open in non-blocking mode
54 - (blocking mode is the default)
60 This system call, used with a device name of /dev/dvb/adapter0/demux0,
61 allocates a new filter and returns a handle which can be used for
62 subsequent control of that filter. This call has to be made for each
63 filter to be used, i.e. every returned file descriptor is a reference to
64 a single filter. /dev/dvb/adapter0/dvr0 is a logical device to be used
65 for retrieving Transport Streams for digital video recording. When
66 reading from this device a transport stream containing the packets from
67 all PES filters set in the corresponding demux device
68 (/dev/dvb/adapter0/demux0) having the output set to DMX_OUT_TS_TAP. A
69 recorded Transport Stream is replayed by writing to this device.
71 The significance of blocking or non-blocking mode is described in the
72 documentation for functions where there is a difference. It does not
73 affect the semantics of the open() call itself. A device opened in
74 blocking mode can later be put into non-blocking mode (and vice versa)
75 using the F_SETFL command of the fcntl system call.
90 - Device driver not loaded/available.
102 - “Too many open files”, i.e. no more filters available.
108 - The driver failed to allocate enough memory.