Find the answer to your Linux question:
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.
  1. #1
    Just 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...

  2. #2
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •