• Home
  • Raw
  • Download

Lines Matching refs:r

1406 	struct rlimit r;  in COMPAT_SYSCALL_DEFINE2()  local
1413 r.rlim_cur = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1415 r.rlim_cur = r32.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1417 r.rlim_max = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1419 r.rlim_max = r32.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1420 return do_prlimit(current, resource, &r, NULL); in COMPAT_SYSCALL_DEFINE2()
1426 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() local
1429 ret = do_prlimit(current, resource, NULL, &r); in COMPAT_SYSCALL_DEFINE2()
1432 if (r.rlim_cur > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1435 r32.rlim_cur = r.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1436 if (r.rlim_max > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1439 r32.rlim_max = r.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1476 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() local
1483 r = current->signal->rlim[resource]; in COMPAT_SYSCALL_DEFINE2()
1485 if (r.rlim_cur > 0x7FFFFFFF) in COMPAT_SYSCALL_DEFINE2()
1486 r.rlim_cur = 0x7FFFFFFF; in COMPAT_SYSCALL_DEFINE2()
1487 if (r.rlim_max > 0x7FFFFFFF) in COMPAT_SYSCALL_DEFINE2()
1488 r.rlim_max = 0x7FFFFFFF; in COMPAT_SYSCALL_DEFINE2()
1490 if (put_user(r.rlim_cur, &rlim->rlim_cur) || in COMPAT_SYSCALL_DEFINE2()
1491 put_user(r.rlim_max, &rlim->rlim_max)) in COMPAT_SYSCALL_DEFINE2()
1703 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage() argument
1705 r->ru_nvcsw += t->nvcsw; in accumulate_thread_rusage()
1706 r->ru_nivcsw += t->nivcsw; in accumulate_thread_rusage()
1707 r->ru_minflt += t->min_flt; in accumulate_thread_rusage()
1708 r->ru_majflt += t->maj_flt; in accumulate_thread_rusage()
1709 r->ru_inblock += task_io_get_inblock(t); in accumulate_thread_rusage()
1710 r->ru_oublock += task_io_get_oublock(t); in accumulate_thread_rusage()
1713 void getrusage(struct task_struct *p, int who, struct rusage *r) in getrusage() argument
1724 memset(r, 0, sizeof(*r)); in getrusage()
1730 accumulate_thread_rusage(p, r); in getrusage()
1742 r->ru_nvcsw = sig->cnvcsw; in getrusage()
1743 r->ru_nivcsw = sig->cnivcsw; in getrusage()
1744 r->ru_minflt = sig->cmin_flt; in getrusage()
1745 r->ru_majflt = sig->cmaj_flt; in getrusage()
1746 r->ru_inblock = sig->cinblock; in getrusage()
1747 r->ru_oublock = sig->coublock; in getrusage()
1755 r->ru_nvcsw += sig->nvcsw; in getrusage()
1756 r->ru_nivcsw += sig->nivcsw; in getrusage()
1757 r->ru_minflt += sig->min_flt; in getrusage()
1758 r->ru_majflt += sig->maj_flt; in getrusage()
1759 r->ru_inblock += sig->inblock; in getrusage()
1760 r->ru_oublock += sig->oublock; in getrusage()
1766 accumulate_thread_rusage(t, r); in getrusage()
1796 r->ru_maxrss = maxrss * (PAGE_SIZE / 1024); /* convert pages to KBs */ in getrusage()
1797 r->ru_utime = ns_to_kernel_old_timeval(utime); in getrusage()
1798 r->ru_stime = ns_to_kernel_old_timeval(stime); in getrusage()
1803 struct rusage r; in SYSCALL_DEFINE2() local
1809 getrusage(current, who, &r); in SYSCALL_DEFINE2()
1810 return copy_to_user(ru, &r, sizeof(r)) ? -EFAULT : 0; in SYSCALL_DEFINE2()
1816 struct rusage r; in COMPAT_SYSCALL_DEFINE2() local
1822 getrusage(current, who, &r); in COMPAT_SYSCALL_DEFINE2()
1823 return put_compat_rusage(&r, ru); in COMPAT_SYSCALL_DEFINE2()