Problem using kmalloc
#include<linux/slab.h>
main()
{
int *p;
p = kmalloc(sizeof(int)*10);
}
I am trying to use the basic program , but it is saying that linux/slab.h: No such file or directory .. I tried locating linux/slab.h manually but still it is not compiling . I would really appreciate someone if you could help me using kmalloc successfully.
|