LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1661|回复: 1

这个错误怎么改storage size of `scull_fops' isn't known

[复制链接]
发表于 2005-5-12 22:50:28 | 显示全部楼层 |阅读模式
这是<<linux设备驱动程序开发>>的一节源代码
scull_fops是个结构体,这样定义的
struct file_operations scull_fops = {
llseek:    scull_llseek,
       read:       scull_read,
     write:      scull_write,
     ioctl:      scull_ioctl,
     open:       scull_open,
     release:    scull_release,
} ;
发表于 2005-5-13 08:53:30 | 显示全部楼层
没有包含相应的头文件,或者条件编译的宏定义不正确。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表