Merge remote-tracking branch 'mailbox/mailbox-for-next'
[deliverable/linux.git] / Documentation / media / uapi / dvb / ca-get-cap.rst
CommitLineData
47d23e36
MCC
1.. -*- coding: utf-8; mode: rst -*-
2
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
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 59Description
586027ce
MCC
60-----------
61
cf8076c3 62.. note:: This ioctl is undocumented. Documentation is welcome.
586027ce
MCC
63
64
15e7d615 65Return Value
47d23e36
MCC
66------------
67
68On success 0 is returned, on error -1 and the ``errno`` variable is set
69appropriately. The generic error codes are described at the
70:ref:`Generic Error Codes <gen-errors>` chapter.
This page took 0.047171 seconds and 5 git commands to generate.