Rajat Jain wrote:
Hi,
I want to make a tag in a running process's task_struct. So the
child will inherit this tag and all these processes will be
distinguish form other processes.
But the probelm is I can't find any bits or field of task_struct can
be used to make a tag. Could anyone can give some suggestions?
What I understood is that you want to save come kind of information
(tag) in the task_struct and you are unable to find any (reserved /
unused) fields in the current task struct for this pupose ... right?
Yes. That is what I want to do.
You can always add a new field ...
But I can't modify the task_struct , in another word , I can't change
the kernel.
What I can do is just using a module.
regards,
Rajat
Thanks
BR
LiYanbo
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/