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,
};
Run Code Online (Sandbox Code Playgroud)
此声明使用标准C标记结构初始化语法.
有人可以详细说明吗?