lkml.org 
[lkml]   [1998]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: How to extend the task_struct?
Date
From
MOLNAR Ingo <mingo@chiara.csoma.elte.hu> said:
> On Tue, 4 Aug 1998, Marc Bechler wrote:

> > 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.

> yep, thats the way it's done. Take a look at say patch-2.1.107 as an
> example. (two new fields were added)

Nope. INIT_LOCKS expands to nothing on UP, and has to stay at the end to
work around a nasty gcc-2.7.2.3 bug. So the spinlock_t has to be last all
the time.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

-
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    [W:0.038 / U:0.232 seconds]
©2003-2014 Jasper Spaans. Advertise on this site