idev = input_allocate_device(); //这一行代表什么意思呢?
struct input_dev {
unsigned int repeat_key;
struct timer_list timer;
int rep[REP_CNT];
struct input_mt_slot *mt;
int trkid;
struct input_absinfo *absinfo;
int (*open)(struct input_dev *dev);
void (*close)(struct input_dev *dev);
struct device dev;
struct list_head h_list;
struct list_head node;
}
struct input_dev *input_allocate_device(void); //input_allocate_device这个函数没有定义
struct input_dev *idev;
idev = input_allocate_device(); //这一行代表什么意思呢? 如果是把地址赋给idev,但是 input_allocate_device()函数没有定义,哪里的地址呢?
如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

发布评论
需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。