[lkml]   [2000]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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 :(


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 12:38    [W:0.360 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site