Commit | Line | Data |
---|---|---|
47d23e36 MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
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 MCC |
30 | |
31 | .. c:type:: struct ca_caps | |
32 | ||
33 | .. flat-table:: struct ca_caps | |
34 | :header-rows: 1 | |
35 | :stub-columns: 0 | |
36 | ||
37 | - | |
38 | - type | |
39 | - name | |
40 | - description | |
41 | - | |
42 | - unsigned int | |
43 | - slot_num | |
44 | - total number of CA card and module slots | |
45 | - | |
46 | - unsigned int | |
47 | - slot_type | |
48 | - bitmask with all supported slot types | |
49 | - | |
50 | - unsigned int | |
51 | - descr_num | |
52 | - total number of descrambler slots (keys) | |
53 | - | |
54 | - unsigned int | |
55 | - descr_type | |
56 | - bit mask with all supported descr types | |
47d23e36 MCC |
57 | |
58 | ||
15e7d615 | 59 | Description |
586027ce MCC |
60 | ----------- |
61 | ||
cf8076c3 | 62 | .. note:: This ioctl is undocumented. Documentation is welcome. |
586027ce MCC |
63 | |
64 | ||
15e7d615 | 65 | Return Value |
47d23e36 MCC |
66 | ------------ |
67 | ||
68 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
69 | appropriately. The generic error codes are described at the | |
70 | :ref:`Generic Error Codes <gen-errors>` chapter. |