EmbLogic's Blog

writing in character driver with multiple quantum

#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;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>