[lkml]   [1998]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: How to extend the task_struct?
    MOLNAR Ingo <> 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- bug. So the spinlock_t has to be last all
    the time.
    Dr. Horst H. von Brand
    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
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:43    [W:0.018 / U:1.812 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site