Linux 设备驱动中对结构体成员赋值的常用格式
struct super_operation new_super{ .read=new_read; .write=new_write; // 更多的这样的语句};另外还有一种语法是下面这个样子的:struct super_operation new_super{ read: new_read; write: new_write; // 更多的这样的语句};第一种吧,在内核中为结构体变量赋值,这样赋值不用关系结构体变量中元素的顺序的问题。而第二种,是C中的位...