Chinaunix
标题:
file_operations
[打印本页]
作者:
sky_flying
时间:
2008-11-23 17:14
标题:
file_operations
scull 设备驱动只实现最重要的设备方法. 它的 file_operations 结构是如下初始化的:
struct file_operations scull_fops = { .owner = THIS_MODULE, .llseek = scull_llseek, .read = scull_read, .write = scull_write, .ioctl = scull_ioctl, .open = scull_open, .release = scull_release, };
本文来自ChinaUnix博客,如果查看原文请点:
http://blog.chinaunix.net/u2/86325/showart_1661950.html
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2