[lkml]   [1998]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectHow to extend the task_struct?
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


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:43    [W:0.035 / U:9.296 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site