Merge tag 'drivers-5.10-2020-10-12' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / Documentation / userspace-api / media / dvb / ca-get-cap.rst
CommitLineData
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
6CA_GET_CAP
7==========
8
15e7d615 9Name
586027ce 10----
47d23e36 11
586027ce 12CA_GET_CAP
47d23e36 13
15e7d615
MCC
14
15Synopsis
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 22Arguments
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 31Description
586027ce
MCC
32-----------
33
3c71bfd4
MCC
34Queries the Kernel for information about the available CA and descrambler
35slots, and their types.
586027ce 36
15e7d615 37Return Value
47d23e36
MCC
38------------
39
3c71bfd4
MCC
40On success 0 is returned and :c:type:`ca_caps` is filled.
41
42On error, -1 is returned and the ``errno`` variable is set
9a721b9b
MCC
43appropriately.
44
45The generic error codes are described at the
47d23e36 46:ref:`Generic Error Codes <gen-errors>` chapter.