1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
21 .. attention:: This ioctl is deprecated.
26 .. c:function:: int open(const char *deviceName, int flags)
39 - const char \*deviceName
41 - Name of specific video device.
47 - A bit-wise OR of the following flags:
52 - O_RDONLY read-only access
57 - O_RDWR read/write access
62 - O_NONBLOCK open in non-blocking mode
67 - (blocking mode is the default)
73 This system call opens a named video device (e.g.
74 /dev/dvb/adapter0/video0) for subsequent use.
76 When an open() call has succeeded, the device will be ready for use. The
77 significance of blocking or non-blocking mode is described in the
78 documentation for functions where there is a difference. It does not
79 affect the semantics of the open() call itself. A device opened in
80 blocking mode can later be put into non-blocking mode (and vice versa)
81 using the F_SETFL command of the fcntl system call. This is a standard
82 system call, documented in the Linux manual page for fcntl. Only one
83 user can open the Video Device in O_RDWR mode. All other attempts to
84 open the device in this mode will fail, and an error-code will be
85 returned. If the Video Device is opened in O_RDONLY mode, the only
86 ioctl call that can be used is VIDEO_GET_STATUS. All other call will
93 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
104 - Device driver not loaded/available.
116 - Device or resource busy.