|
|
发表于 2012-10-29 06:19:19
|
显示全部楼层
struct scull_qset; //声明下就可以了,就可以引用struct scull_qset 结构体了
struct scull_dev {
struct scull_qset *data; /* Pointer to first quantum set */
int quantum; /* the current quantum size */
int qset; /* the current array size */
unsigned long size; /* amount of data stored here */
unsigned int access_key; /* used by sculluid and scullpriv */
struct semaphore sem; /* mutual exclusion semaphore */
struct cdev cdev; /* Char device structure */
};
struct scull_qset {
void **data;
struct scull_qset *next;
};
或者把下面的移到最上面也行 |
|