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
25 .. c:function:: int open(const char *name, int flags)
33 Name of specific Digital TV CA device.
36 A bit-wise OR of the following flags:
38 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
52 - open in non-blocking mode
53 (blocking mode is the default)
59 This system call opens a named ca device (e.g. ``/dev/dvb/adapter?/ca?``)
62 When an ``open()`` call has succeeded, the device will be ready for use. The
63 significance of blocking or non-blocking mode is described in the
64 documentation for functions where there is a difference. It does not
65 affect the semantics of the ``open()`` call itself. A device opened in
66 blocking mode can later be put into non-blocking mode (and vice versa)
67 using the ``F_SETFL`` command of the ``fcntl`` system call. This is a
68 standard system call, documented in the Linux manual page for fcntl.
69 Only one user can open the CA Device in ``O_RDWR`` mode. All other
70 attempts to open the device in this mode will fail, and an error code
78 On success 0 is returned.
80 On error -1 is returned, and the ``errno`` variable is set
83 Generic error codes are described at the
84 :ref:`Generic Error Codes <gen-errors>` chapter.