1 .. -*- coding: utf-8; mode: rst -*-
12 LIRC_GET_LENGTH - Retrieves the code length in bits.
17 .. c:function:: int ioctl( int fd, LIRC_GET_LENGTH, __u32 *length )
18 :name: LIRC_GET_LENGTH
24 File descriptor returned by open().
33 Retrieves the code length in bits (only for ``LIRC-MODE-LIRCCODE``).
34 Reads on the device must be done in blocks matching the bit count.
35 The bit could should be rounded up so that it matches full bytes.
41 On success 0 is returned, on error -1 and the ``errno`` variable is set
42 appropriately. The generic error codes are described at the
43 :ref:`Generic Error Codes <gen-errors>` chapter.