[Linux 3.0 http://lxr.linux.no/#linux+v3.0]
前面介绍了输入子系统的初始化,前面提及到/proc/bus/input/handlers,当读取此文件时,其中有一行是
N: Number=2 Name=evdev Minor=64
这一行是如何来的呢?
----------------------------------------------------------------------------------------------
obj-$(CONFIG_INPUT_EVDEV) += evdev.o
下面来解开这个迷底,介绍handler ------ evdev的注册过程
<drivers/input/evdev.c>
1235 static struct input_handler evdev_handler = {
1236 .event = evdev_event,
1237 .events = evdev_events,
1238 .connect = evdev_connect,
1239 .disconnect = evdev_disconnect,
1240 .legacy_minors = true,