How to extend the task_struct?

Marc Bechler (mbechler@telematik.informatik.uni-karlsruhe.de)
Tue, 4 Aug 1998 12:27:11 +0200


Hi Linux kings!

I had to extend the task_struct structure in the kernel (in sched.h) for some measurements. First I thought this won't so difficult: I append a new component at the end of the structure (an integer) and adapt the INIT_TASK definition by inserting a ,0 at the end.

While compiling the kernel I got the following errors:

init_task.c:24: parse error before ','
init_task.c:24: warning: missing braces around initializer after 'init_task_union.task.sigmask.lock'
init_task.c:24: warning: excess elements in struct initializer after 'init_task_union.task.sigmask.lock'
gcc: internal compiler error...

Are there some more modifications needed???

Used Kernel: 2.1.109 on Intel Pentium 133

Thanx for helping me

marc

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html