1 .. -*- coding: utf-8; mode: rst -*-
14 .. attention:: This ioctl is deprecated.
19 .. c:function:: int open(const char *deviceName, int flags)
32 - const char \*deviceName
34 - Name of specific video device.
40 - A bit-wise OR of the following flags:
45 - O_RDONLY read-only access
50 - O_RDWR read/write access
55 - O_NONBLOCK open in non-blocking mode
60 - (blocking mode is the default)
66 This system call opens a named video device (e.g.
67 /dev/dvb/adapter0/video0) for subsequent use.
69 When an open() call has succeeded, the device will be ready for use. The
70 significance of blocking or non-blocking mode is described in the
71 documentation for functions where there is a difference. It does not
72 affect the semantics of the open() call itself. A device opened in
73 blocking mode can later be put into non-blocking mode (and vice versa)
74 using the F_SETFL command of the fcntl system call. This is a standard
75 system call, documented in the Linux manual page for fcntl. Only one
76 user can open the Video Device in O_RDWR mode. All other attempts to
77 open the device in this mode will fail, and an error-code will be
78 returned. If the Video Device is opened in O_RDONLY mode, the only
79 ioctl call that can be used is VIDEO_GET_STATUS. All other call will
86 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
97 - Device driver not loaded/available.
109 - Device or resource busy.