Commit | Line | Data |
---|---|---|
059b1c5b | 1 | .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later |
82559ac0 | 2 | |
47d23e36 MCC |
3 | .. _CA_GET_CAP: |
4 | ||
586027ce | 5 | ========== |
47d23e36 MCC |
6 | CA_GET_CAP |
7 | ========== | |
8 | ||
15e7d615 | 9 | Name |
586027ce | 10 | ---- |
47d23e36 | 11 | |
586027ce | 12 | CA_GET_CAP |
47d23e36 | 13 | |
15e7d615 MCC |
14 | |
15 | Synopsis | |
47d23e36 MCC |
16 | -------- |
17 | ||
189d7243 | 18 | .. c:function:: int ioctl(fd, CA_GET_CAP, struct ca_caps *caps) |
cf8076c3 | 19 | :name: CA_GET_CAP |
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() <dvb-ca-open>`. | |
47d23e36 | 27 | |
cf8076c3 | 28 | ``caps`` |
189d7243 | 29 | Pointer to struct :c:type:`ca_caps`. |
f9c04551 | 30 | |
15e7d615 | 31 | Description |
586027ce MCC |
32 | ----------- |
33 | ||
3c71bfd4 MCC |
34 | Queries the Kernel for information about the available CA and descrambler |
35 | slots, and their types. | |
586027ce | 36 | |
15e7d615 | 37 | Return Value |
47d23e36 MCC |
38 | ------------ |
39 | ||
3c71bfd4 MCC |
40 | On success 0 is returned and :c:type:`ca_caps` is filled. |
41 | ||
42 | On error, -1 is returned and the ``errno`` variable is set | |
9a721b9b MCC |
43 | appropriately. |
44 | ||
45 | The generic error codes are described at the | |
47d23e36 | 46 | :ref:`Generic Error Codes <gen-errors>` chapter. |