以下地址文章解释很好 http://blog.chinaunix.net/uid-27122224-id-3277511.html 对下面的结构体分析 1 struct person 2 { 3 int age; 4 int weight; 5 struct list_head list; 6 }; 遍历的方法中用到的一个重要宏,这个宏可以遍历不同类型的结构体 1 /** 2 * list_entry - get the struct for this entry 3 * @ptr: the &
struct usb_device_id { /* which fields to match against? */ __u16 match_flags; //说明使用哪种匹配方式 /* Used for product specific matches; range is inclusive */ __u16 idVendor; //供应商ID __u16 idProduct; //产品ID __u16 bcdDevice_lo; __u16 bcdDevice_hi; /* Used fo