linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UID (user name) of the child processes
@ 2003-12-31  2:47 auntvini
  0 siblings, 0 replies; only message in thread
From: auntvini @ 2003-12-31  2:47 UTC (permalink / raw)
  To: torvalds, linux-kernel; +Cc: jeremy, akpm, ncunningham

Dear Linus,
Dear Jeremy,
Dear Andrew,
Dear Nigel,

I am building the linux kernel to calculate the Load Average of the tasks 
in a different manner.

That would be to seperate the tasks under respective login user and then 
calculate Load Averages. I was successful partly but there is a problem.

ps command gives a good idear about my effort.

Though I was able to introduce new code, now I find that as far as a child 
processors are concerned uid is not the original user id (say 500, 501 etc) 
of that child processor. This is because the child inherits the user id of 
the Parent.

Previously I thought that the uid in the struct task_struct
is going to be original user id. Now I find it is not the case always as 
child inherits parent uid

Then I used p->uid. which is not true.

acct structure is also has got uid ?

Do you know any global structure that keeps the original user id (say 500, 
501 etc)?

Thanks
Sena Seneviratene
Computer Engineering Lab
Sydney University



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-31  2:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31  2:47 UID (user name) of the child processes auntvini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).