#include”header.h”
#include”declration.c”
struct ScullQset *create_scullqset(int nosqset)
{
struct ScullQset *lscullqset,*temp,*new;
int i,flag=1;
lscullqset=NULL;
//int i;
printk(KERN_INFO”begin=%s\n”,__func__);
for(i=0;inext=NULL;
lscullqset->data=NULL;
}
else
{
new = (struct ScullQset *)kmalloc(sizeof(struct ScullQset),GFP_KERNEL);
new->next=NULL;
new->data=NULL;
temp->next=new;
temp=temp->next;
}
#include”header.h”
#include”declration.c”
struct ScullQset *create_scullqset(int nosqset)
{
struct ScullQset *lscullqset,*temp,*new;
int i,flag=1;
lscullqset=NULL;
//int i;
printk(KERN_INFO”begin=%s\n”,__func__);
for(i=0;inext=NULL;
lscullqset->data=NULL;
}
else
{
new = (struct ScullQset *)kmalloc(sizeof(struct ScullQset),GFP_KERNEL);
new->next=NULL;
new->data=NULL;
temp->next=new;
temp=temp->next;
}