lkml.org 
[lkml]   [2000]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectAdding members to task_struct without recompling the kernel
Hi,

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. I've come up with a couple nasty kludges to
accomplish this but I'm hoping for a more sain solution.

The other option would be to maintain the information in an ADT that
parallels task_struct, but I really want to be able to access the
information in constant time if at all possible.

Thanks,
Michael



-
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.049 / U:8.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site