1 .. -*- coding: utf-8; mode: rst -*-
9 The LIRC device interface is a bi-directional interface for transporting
10 raw IR data between userspace and kernelspace. Fundamentally, it is just
11 a chardev (/dev/lircX, for X = 0, 1, 2, ...), with a number of standard
12 struct file_operations defined on it. With respect to transporting raw
13 IR data to and fro, the essential fops are read, write and ioctl.
15 Example dmesg output upon a driver registering w/LIRC:
17 $ dmesg |grep lirc_dev
19 lirc_dev: IR Remote Control driver registered, major 248
21 rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor
24 What you should see for a chardev:
28 crw-rw---- 1 root root 248, 0 Jul 2 22:20 /dev/lirc0
31 .. ------------------------------------------------------------------------------
32 .. This file was automatically converted from DocBook-XML with the dbxml
33 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
34 .. from the linux kernel, refer to:
36 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
37 .. ------------------------------------------------------------------------------