1.. -*- coding: utf-8; mode: rst -*-
2
3.. _CA_RESET:
4
5========
6CA_RESET
7========
8
9Name
10----
11
12CA_RESET
13
14
15Synopsis
16--------
17
18.. c:function:: int ioctl(fd, CA_RESET)
19    :name: CA_RESET
20
21
22Arguments
23---------
24
25``fd``
26  File descriptor returned by a previous call to :c:func:`open() <cec-open>`.
27
28Description
29-----------
30
31Puts the Conditional Access hardware on its initial state. It should
32be called before start using the CA hardware.
33
34
35Return Value
36------------
37
38On success 0 is returned.
39
40On error -1 is returned, and the ``errno`` variable is set
41appropriately.
42
43Generic error codes are described at the
44:ref:`Generic Error Codes <gen-errors>` chapter.
45