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>