• Home
  • Raw
  • Download

Lines Matching refs:r

1530 	struct rlimit r;  in COMPAT_SYSCALL_DEFINE2()  local
1537 r.rlim_cur = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1539 r.rlim_cur = r32.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1541 r.rlim_max = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1543 r.rlim_max = r32.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1544 return do_prlimit(current, resource, &r, NULL); in COMPAT_SYSCALL_DEFINE2()
1550 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() local
1553 ret = do_prlimit(current, resource, NULL, &r); in COMPAT_SYSCALL_DEFINE2()
1556 if (r.rlim_cur > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1559 r32.rlim_cur = r.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1560 if (r.rlim_max > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1563 r32.rlim_max = r.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1600 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() local
1607 r = current->signal->rlim[resource]; in COMPAT_SYSCALL_DEFINE2()
1609 if (r.rlim_cur > 0x7FFFFFFF) in COMPAT_SYSCALL_DEFINE2()
1610 r.rlim_cur = 0x7FFFFFFF; in COMPAT_SYSCALL_DEFINE2()
1611 if (r.rlim_max > 0x7FFFFFFF) in COMPAT_SYSCALL_DEFINE2()
1612 r.rlim_max = 0x7FFFFFFF; in COMPAT_SYSCALL_DEFINE2()
1614 if (put_user(r.rlim_cur, &rlim->rlim_cur) || in COMPAT_SYSCALL_DEFINE2()
1615 put_user(r.rlim_max, &rlim->rlim_max)) in COMPAT_SYSCALL_DEFINE2()
1768 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage() argument
1770 r->ru_nvcsw += t->nvcsw; in accumulate_thread_rusage()
1771 r->ru_nivcsw += t->nivcsw; in accumulate_thread_rusage()
1772 r->ru_minflt += t->min_flt; in accumulate_thread_rusage()
1773 r->ru_majflt += t->maj_flt; in accumulate_thread_rusage()
1774 r->ru_inblock += task_io_get_inblock(t); in accumulate_thread_rusage()
1775 r->ru_oublock += task_io_get_oublock(t); in accumulate_thread_rusage()
1778 void getrusage(struct task_struct *p, int who, struct rusage *r) in getrusage() argument
1785 memset((char *)r, 0, sizeof (*r)); in getrusage()
1790 accumulate_thread_rusage(p, r); in getrusage()
1803 r->ru_nvcsw = p->signal->cnvcsw; in getrusage()
1804 r->ru_nivcsw = p->signal->cnivcsw; in getrusage()
1805 r->ru_minflt = p->signal->cmin_flt; in getrusage()
1806 r->ru_majflt = p->signal->cmaj_flt; in getrusage()
1807 r->ru_inblock = p->signal->cinblock; in getrusage()
1808 r->ru_oublock = p->signal->coublock; in getrusage()
1819 r->ru_nvcsw += p->signal->nvcsw; in getrusage()
1820 r->ru_nivcsw += p->signal->nivcsw; in getrusage()
1821 r->ru_minflt += p->signal->min_flt; in getrusage()
1822 r->ru_majflt += p->signal->maj_flt; in getrusage()
1823 r->ru_inblock += p->signal->inblock; in getrusage()
1824 r->ru_oublock += p->signal->oublock; in getrusage()
1829 accumulate_thread_rusage(t, r); in getrusage()
1839 r->ru_utime = ns_to_kernel_old_timeval(utime); in getrusage()
1840 r->ru_stime = ns_to_kernel_old_timeval(stime); in getrusage()
1850 r->ru_maxrss = maxrss * (PAGE_SIZE / 1024); /* convert pages to KBs */ in getrusage()
1855 struct rusage r; in SYSCALL_DEFINE2() local
1861 getrusage(current, who, &r); in SYSCALL_DEFINE2()
1862 return copy_to_user(ru, &r, sizeof(r)) ? -EFAULT : 0; in SYSCALL_DEFINE2()
1868 struct rusage r; in COMPAT_SYSCALL_DEFINE2() local
1874 getrusage(current, who, &r); in COMPAT_SYSCALL_DEFINE2()
1875 return put_compat_rusage(&r, ru); in COMPAT_SYSCALL_DEFINE2()