Re: Adding members to task_struct without recompling the kernel

From: Stephen C. Tweedie (sct@redhat.com)
Date: Fri Sep 15 2000 - 07:19:55 EST


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/



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