structure definition in a .c file rather than .h file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The complete definition of structure cfs_rq is in a .c file
(kernel/sched.c). In the head linux/sched.h it has been declared as
"struct cfs_rq;"
What is the purpose of doing so ?

Because of this I am facing a problem while compiling a jprobes-module
that instruments the __enqueue_entity function. When I am using the
expression "cfs_rq->load.weight", gcc complaints that "dereferencing
pointer to an incomplete type". But you will find that the cfs_rq
pointer has been dereferenced in the function i am instrumenting ...



-- 
Regards,
Sukanto Ghosh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux