当我最近为我的raid设备开了一个相当老的驱动程序时出现了这个问题.为了能够编译Linux系统的驱动程序,我开始研究我输出的所有错误.我遇到了驱动程序源中使用的这种语法:
struct file_operations t3_fops = {
owner: THIS_MODULE,
ioctl: ft_ioctl,
fasync: ft_fasync,
open: ft_open,
release: ft_release
};
Run Code Online (Sandbox Code Playgroud)
那么伙计们,你能帮我理解":"是什么意思吗?这是C语法吗?我知道有一些字段定义,但这看起来与我不同.