Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[deliverable/linux.git] / Documentation / media / uapi / rc / lirc-get-length.rst
CommitLineData
5413b648
MCC
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _lirc_get_length:
4
5*********************
6ioctl LIRC_GET_LENGTH
7*********************
8
9Name
10====
11
12LIRC_GET_LENGTH - Retrieves the code length in bits.
13
14Synopsis
15========
16
17.. cpp:function:: int ioctl( int fd, int request, __u32 *length )
18
19Arguments
20=========
21
22``fd``
23 File descriptor returned by open().
24
25``request``
26 LIRC_GET_LENGTH
27
28``length``
29 length, in bits
30
31
32Description
33===========
34
35Retrieves the code length in bits (only for ``LIRC-MODE-LIRCCODE``).
36Reads on the device must be done in blocks matching the bit count.
37The bit could should be rounded up so that it matches full bytes.
38
39
40Return Value
41============
42
43On success 0 is returned, on error -1 and the ``errno`` variable is set
44appropriately. The generic error codes are described at the
45:ref:`Generic Error Codes <gen-errors>` chapter.
This page took 0.034646 seconds and 5 git commands to generate.