Re: Adding members to task_struct without recompling the kernel

From: Michael Vines (mjvines@undergrad.math.uwaterloo.ca)
Date: Fri Sep 15 2000 - 08:34:28 EST


On Fri, 15 Sep 2000, Stephen C. Tweedie wrote:

> On Tue, Sep 12, 2000 at 06:17:48PM -0400, Michael Vines wrote:
> >
> > I'm writing a kernel module that needs to keep track of a pointer to some
> > custom module information for every task in the system. Basically I want
> > to add another member to task_struct but I don't want to have to
> > recompile the kernel to do it.
> >
> > Unlike "struct file", there doesn't seem to be any private_data pointer in
> > task_struct that I could use.
>
> No. There's no way you'd be able to assume that you are the only user
> of such a pointer. It's different in the struct file, because there's
> a clear ownership of any given filp with a specific filesystem or
> device driver.

Yeah that's pretty much what I figured, but I was just trying to be
optimistic. I really wanted to avoid building my own data structure that
parallels the task list :(

Thanks,
Mike

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



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:25 EST