1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.audio
6 =======================
7 Digital TV audio open()
8 =======================
13 Digital TV audio open()
15 .. attention:: This ioctl is deprecated
20 .. c:function:: int open(const char *deviceName, int flags)
31 - const char \*deviceName
33 - Name of specific audio device.
39 - A bit-wise OR of the following flags:
44 - O_RDONLY read-only access
49 - O_RDWR read/write access
54 - O_NONBLOCK open in non-blocking mode
59 - (blocking mode is the default)
64 This system call opens a named audio device (e.g.
65 /dev/dvb/adapter0/audio0) for subsequent use. When an open() call has
66 succeeded, the device will be ready for use. The significance of
67 blocking or non-blocking mode is described in the documentation for
68 functions where there is a difference. It does not affect the semantics
69 of the open() call itself. A device opened in blocking mode can later be
70 put into non-blocking mode (and vice versa) using the F_SETFL command
71 of the fcntl system call. This is a standard system call, documented in
72 the Linux manual page for fcntl. Only one user can open the Audio Device
73 in O_RDWR mode. All other attempts to open the device in this mode will
74 fail, and an error code will be returned. If the Audio Device is opened
75 in O_RDONLY mode, the only ioctl call that can be used is
76 AUDIO_GET_STATUS. All other call will return with an error code.
81 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
91 - Device driver not loaded/available.
97 - Device or resource busy.