摘要: 在drivers/input/input.c中:进入模块入口函数input_init :err = register_chrdev(INPUT_MAJOR, "input", &input_fops);而input_fops只有open和llseek函数:static const struct file_operations input_fops = {.owner = THIS_MODULE,.open = input_open_file,.llseek = noop_llseek,};那么没有read函数的话该怎么读数据呢?进入 input_open_file函 阅读全文
posted @ 2012-04-07 10:38 硅谷芯微嵌入式园地 阅读(343) 评论(0) 推荐(0)