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

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site