博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux Kernel input设备之handler注册
阅读量:4152 次
发布时间:2019-05-25

本文共 678 字,大约阅读时间需要 2 分钟。

/**
 * input_register_handler - register a new input handler * @handler: handler to be registered * * This function registers a new input handler (interface) for input * devices in the system and attaches it to all input devices that * are compatible with the handler. */int input_register_handler(struct input_handler *handler){	struct input_dev *dev;	int error;	error = mutex_lock_interruptible(&input_mutex);	if (error)		return error;	INIT_LIST_HEAD(&handler->h_list);	list_add_tail(&handler->node, &input_handler_list);	list_for_each_entry(dev, &input_dev_list, node)		input_attach_handler(dev, handler);	input_wakeup_procfs_readers();	mutex_unlock(&input_mutex);	return 0;}
 

转载地址:http://xwhti.baihongyu.com/

你可能感兴趣的文章
进程创建时IO处理
查看>>
进程创建时线程栈处理
查看>>
进程创建时pid分配
查看>>
进程创建时安全计算处理
查看>>
进程创建时cgroup处理
查看>>
进程创建时共享内存处理
查看>>
idle进程创建
查看>>
内核线程创建
查看>>
linux elf tool readelf
查看>>
linux tool objdump
查看>>
linux tool nm
查看>>
字节对齐
查看>>
Python-发邮件
查看>>
python写入csv文件的两种方法
查看>>
pandas学习笔记—dataframe与list相互转化
查看>>
Keras和TensorFlow设置GPU及其使用率
查看>>
python常见异常处理方法
查看>>
pandas学习笔记—merge()函数详解
查看>>
pandas学习笔记—agg()函数详解
查看>>
Canny边缘检测算法原理及其OpenCV实现
查看>>