#2
dingyin442008-11-19 15:36
|
c语言学的不精
struct file_operations mem_fops = {
.owner = THIS_MODULE,
.llseek = mem_seek,
.read = mem_read,
.write = mem_write,
.ioctl = mem_ioctl,
.open = mem_open,
.release = mem_release,
};
主要是前边的小点,在结构体中这么用什么意思啊,前边还有个等号(给结构体赋值?),原定义的file_operations结构体成员变量也不是这样的啊,用的是冒号(:)这在C中不是位定义了吗?
还有后边怎么不是用分号,而是逗号?