redeferenced pointer to incomplete type
Hi to all! I'm trying to write a new system_call fir Linux kernel; in order to do that the next code wst wroten:
#include <stdio.h>
#include <sched.h>
#include <errno.h>
int sys_getpath(int pid, int *array, int size) {
struct task_struct *p;
*************
if(******************) {
p = find_task_by_pid(pid);
/*no such process*/
**********
for(************ p = p->p_pptr)
a[i++] = p->pid;
if(i < size)
a[i] = p->pid;
and so on.
Now, in all places that were used the 'p' pointer, the gcc compiler give us this error message: redeferenced pointer to incomplete type.
what is going on???!! any suggestions....?? thanks.
|