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