Messages in this thread |  | | Date | Fri, 15 Sep 2000 13:19:55 +0100 | From | "Stephen C. Tweedie" <> | Subject | Re: Adding members to task_struct without recompling the kernel |
| |
Hi,
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.
Cheers, Stephen - 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/
|  |