Commit | Line | Data |
---|---|---|
47d23e36 MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _CA_SEND_MSG: | |
4 | ||
586027ce | 5 | =========== |
47d23e36 MCC |
6 | CA_SEND_MSG |
7 | =========== | |
8 | ||
15e7d615 | 9 | Name |
586027ce | 10 | ---- |
47d23e36 | 11 | |
586027ce | 12 | CA_SEND_MSG |
47d23e36 | 13 | |
15e7d615 MCC |
14 | |
15 | Synopsis | |
47d23e36 MCC |
16 | -------- |
17 | ||
189d7243 | 18 | .. c:function:: int ioctl(fd, CA_SEND_MSG, struct ca_msg *msg) |
cf8076c3 | 19 | :name: CA_SEND_MSG |
47d23e36 | 20 | |
47d23e36 | 21 | |
15e7d615 | 22 | Arguments |
586027ce | 23 | --------- |
47d23e36 | 24 | |
cf8076c3 MCC |
25 | ``fd`` |
26 | File descriptor returned by a previous call to :c:func:`open() <cec-open>`. | |
47d23e36 | 27 | |
cf8076c3 | 28 | ``msg`` |
189d7243 | 29 | Pointer to struct :c:type:`ca_msg`. |
47d23e36 MCC |
30 | |
31 | ||
15e7d615 | 32 | Description |
586027ce MCC |
33 | ----------- |
34 | ||
cf8076c3 | 35 | .. note:: This ioctl is undocumented. Documentation is welcome. |
586027ce MCC |
36 | |
37 | ||
15e7d615 | 38 | Return Value |
47d23e36 MCC |
39 | ------------ |
40 | ||
41 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
42 | appropriately. The generic error codes are described at the | |
43 | :ref:`Generic Error Codes <gen-errors>` chapter. |