L
Lucas Machado
i'm doing some Linux Kernel hacking for a course i'm currently taking.
there is a pointer to a struct (struct example_struct *ex_ptr) in a .c
that i want to access in a system call. i defined a pointer to a
pointer in the .c:
extern struct example_struct **pointer;
and somewhere in the code i tried:
pointer = &ex_ptr;
and i get this error when trying to compile the kernel:
invalid lvalue in unary `&'
and it points to the line: pointer = &ex_ptr;....any idea why and what
i should do to fix it?
there is a pointer to a struct (struct example_struct *ex_ptr) in a .c
that i want to access in a system call. i defined a pointer to a
pointer in the .c:
extern struct example_struct **pointer;
and somewhere in the code i tried:
pointer = &ex_ptr;
and i get this error when trying to compile the kernel:
invalid lvalue in unary `&'
and it points to the line: pointer = &ex_ptr;....any idea why and what
i should do to fix it?