lkml.org 
[lkml]   [2003]   [Dec]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 30 Dec 2003 19:04:23 +1100
Fromauntvini <>
SubjectUID of the child processes
Dear All,

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








-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [from the cache]
©2003-2008