Messages in this thread | | | Date | Fri, 15 Sep 2000 09:34:28 -0400 (EDT) | From | Michael Vines <> | Subject | Re: Adding members to task_struct without recompling the kernel |
| |
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/
| |