Lines Matching defs:who
153 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval)
175 if (who)
176 p = find_task_by_vpid(who);
183 if (who)
184 pgrp = find_vpid(who);
193 if (!who)
194 who = cred->uid;
195 else if ((who != cred->uid) &&
196 !(user = find_user(who)))
200 if (__task_cred(p)->uid == who)
203 if (who != cred->uid)
220 SYSCALL_DEFINE2(getpriority, int, which, int, who)
235 if (who)
236 p = find_task_by_vpid(who);
246 if (who)
247 pgrp = find_vpid(who);
258 if (!who)
259 who = cred->uid;
260 else if ((who != cred->uid) &&
261 !(user = find_user(who)))
265 if (__task_cred(p)->uid == who) {
271 if (who != cred->uid)
924 * understand sessions/pgrp etc. Let somebody who does explain it.
1500 static void k_getrusage(struct task_struct *p, int who, struct rusage *r)
1510 if (who == RUSAGE_THREAD) {
1520 switch (who) {
1533 if (who == RUSAGE_CHILDREN)
1564 if (who != RUSAGE_CHILDREN) {
1574 int getrusage(struct task_struct *p, int who, struct rusage __user *ru)
1577 k_getrusage(p, who, &r);
1581 SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru)
1583 if (who != RUSAGE_SELF && who != RUSAGE_CHILDREN &&
1584 who != RUSAGE_THREAD)
1586 return getrusage(current, who, ru);