Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    dereferencing pointer to incomplete type

    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:


    I have declared current as
    extern struct task_struct *current

    and also included "/usr/src/linux-"
    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
    Hyderabad, India
    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