Merge branch 'exec-update-lock-for-v5.11' of git://git.kernel.org/pub/scm/linux/kerne...
[linux-2.6-microblaze.git] / Documentation / userspace-api / media / dvb / ca-send-msg.rst
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.ca
3
4 .. _CA_SEND_MSG:
5
6 ===========
7 CA_SEND_MSG
8 ===========
9
10 Name
11 ----
12
13 CA_SEND_MSG
14
15 Synopsis
16 --------
17
18 .. c:macro:: CA_SEND_MSG
19
20 ``int ioctl(fd, CA_SEND_MSG, struct ca_msg *msg)``
21
22 Arguments
23 ---------
24
25 ``fd``
26   File descriptor returned by a previous call to :c:func:`open()`.
27
28 ``msg``
29   Pointer to struct :c:type:`ca_msg`.
30
31 Description
32 -----------
33
34 Sends a message via a CI CA module.
35
36 .. note::
37
38    Please notice that, on most drivers, this is done by writing
39    to the /dev/adapter?/ca? device node.
40
41 Return Value
42 ------------
43
44 On success 0 is returned.
45
46 On error -1 is returned, and the ``errno`` variable is set
47 appropriately.
48
49 Generic error codes are described at the
50 :ref:`Generic Error Codes <gen-errors>` chapter.