输入子系统框架
driver/input/input.c
err = register_chrdev(INPUT_MAJOR, “input”, &input_fops);
static const struct file_operations input_fops = {
.owner = THIS_MODULE,
.open = input_open_file,
};
问:怎么读按键?
输入子系统框架
driver/input/input.c
err = register_chrdev(INPUT_MAJOR, “input”, &input_fops);
static const struct file_operations input_fops = {
.owner = THIS_MODULE,
.open = input_open_file,
};
问:怎么读按键?