file_operation结构体通常在那个文件中定义?
A. include/linux/fs.h
B. include/linux/module.h
C. include/linux/kenerl.h
D. include/linux/ioctl.h
查看答案
驱动开发时,注册一个cdev设备所使用的函数通常是:
A. struct cdev *cdev_alloc(void);
B. void cdev_init(struct cdev *, const struct file_operations *);
C. int cdev_add(struct cdev *, dev_t, unsigned);
D. void cdev_del(struct cdev *);
Linux系统中将存储器和外设分为3个基础大类:
A. 光盘设备
B. 字符设备
C. 块设备
D. 网络设备
编写驱动程序所需要的常用头文件包括:
A.
B. include
C. B.
D. include
E. C.
F. include
G. D.
H. include