2016-07-05 21:37:31 +08:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _CA_GET_CAP:
|
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
==========
|
2016-07-05 21:37:31 +08:00
|
|
|
CA_GET_CAP
|
|
|
|
==========
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Name
|
2016-07-05 18:58:48 +08:00
|
|
|
----
|
2016-07-05 21:37:31 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
CA_GET_CAP
|
2016-07-05 21:37:31 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
|
|
|
Synopsis
|
2016-07-05 21:37:31 +08:00
|
|
|
--------
|
|
|
|
|
2016-09-01 02:59:14 +08:00
|
|
|
.. c:function:: int ioctl(fd, CA_GET_CAP, struct ca_caps *caps)
|
2016-08-20 03:56:15 +08:00
|
|
|
:name: CA_GET_CAP
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Arguments
|
2016-07-05 18:58:48 +08:00
|
|
|
---------
|
2016-07-05 21:37:31 +08:00
|
|
|
|
2016-08-20 03:56:15 +08:00
|
|
|
``fd``
|
|
|
|
File descriptor returned by a previous call to :c:func:`open() <dvb-ca-open>`.
|
2016-07-05 21:37:31 +08:00
|
|
|
|
2016-08-20 03:56:15 +08:00
|
|
|
``caps``
|
2016-09-01 02:59:14 +08:00
|
|
|
Pointer to struct :c:type:`ca_caps`.
|
2016-09-01 00:07:43 +08:00
|
|
|
|
|
|
|
.. c:type:: struct ca_caps
|
|
|
|
|
|
|
|
.. flat-table:: struct ca_caps
|
|
|
|
:header-rows: 1
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
-
|
|
|
|
- type
|
|
|
|
- name
|
|
|
|
- description
|
|
|
|
-
|
|
|
|
- unsigned int
|
|
|
|
- slot_num
|
|
|
|
- total number of CA card and module slots
|
|
|
|
-
|
|
|
|
- unsigned int
|
|
|
|
- slot_type
|
|
|
|
- bitmask with all supported slot types
|
|
|
|
-
|
|
|
|
- unsigned int
|
|
|
|
- descr_num
|
|
|
|
- total number of descrambler slots (keys)
|
|
|
|
-
|
|
|
|
- unsigned int
|
|
|
|
- descr_type
|
|
|
|
- bit mask with all supported descr types
|
2016-07-05 21:37:31 +08:00
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Description
|
2016-07-05 18:58:48 +08:00
|
|
|
-----------
|
|
|
|
|
2016-08-20 03:56:15 +08:00
|
|
|
.. note:: This ioctl is undocumented. Documentation is welcome.
|
2016-07-05 18:58:48 +08:00
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Return Value
|
2016-07-05 21:37:31 +08:00
|
|
|
------------
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|