Results 1 to 2 of 2
Hello,
I m modifying the kernel's structure task_struct to include a socket structure pointer in it and also the socket structure to include fd as integer. I m referring to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-03-2012 #1Just Joined!
- Join Date
- Feb 2012
- Posts
- 1
dereferencing pointer to incomplete type
Hello,
I m modifying the kernel's structure task_struct to include a socket structure pointer in it and also the socket structure to include fd as integer. I m referring to the task_struct structure as:
current->mysock->fd
I have declared current as
extern struct task_struct *current
and also included "/usr/src/linux-2.6.32.45/arch/x86/include/asm/current.h"
and <linux/sched.h>
But during compilation i m getting error as:
error: dereferencing pointer to incomplete type
Please help me out...
- 02-07-2012 #2Just Joined!
- Join Date
- Feb 2012
- Location
- Hyderabad, India
- Posts
- 11
Did you include <linux/net.h> in sched.h?. You dont need to extern the current.


Reply With Quote
