/kernel/ |
D | compat.c | 280 struct rlimit r; in compat_sys_setrlimit() local 288 __get_user(r.rlim_cur, &rlim->rlim_cur) || in compat_sys_setrlimit() 289 __get_user(r.rlim_max, &rlim->rlim_max)) in compat_sys_setrlimit() 292 if (r.rlim_cur == COMPAT_RLIM_INFINITY) in compat_sys_setrlimit() 293 r.rlim_cur = RLIM_INFINITY; in compat_sys_setrlimit() 294 if (r.rlim_max == COMPAT_RLIM_INFINITY) in compat_sys_setrlimit() 295 r.rlim_max = RLIM_INFINITY; in compat_sys_setrlimit() 297 ret = sys_setrlimit(resource, (struct rlimit __user *) &r); in compat_sys_setrlimit() 307 struct rlimit r; in compat_sys_old_getrlimit() local 312 ret = sys_old_getrlimit(resource, &r); in compat_sys_old_getrlimit() [all …]
|
D | utsname_sysctl.c | 49 int r; in proc_do_uts_string() local 52 r = proc_dostring(&uts_table,write,filp,buffer,lenp, ppos); in proc_do_uts_string() 54 return r; in proc_do_uts_string() 68 int r, write; in sysctl_uts_string() local 72 r = sysctl_string(&uts_table, oldval, oldlenp, newval, newlen); in sysctl_uts_string() 74 return r; in sysctl_uts_string()
|
D | sys.c | 1614 static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r) in accumulate_thread_rusage() argument 1616 r->ru_nvcsw += t->nvcsw; in accumulate_thread_rusage() 1617 r->ru_nivcsw += t->nivcsw; in accumulate_thread_rusage() 1618 r->ru_minflt += t->min_flt; in accumulate_thread_rusage() 1619 r->ru_majflt += t->maj_flt; in accumulate_thread_rusage() 1620 r->ru_inblock += task_io_get_inblock(t); in accumulate_thread_rusage() 1621 r->ru_oublock += task_io_get_oublock(t); in accumulate_thread_rusage() 1624 static void k_getrusage(struct task_struct *p, int who, struct rusage *r) in k_getrusage() argument 1631 memset((char *) r, 0, sizeof *r); in k_getrusage() 1637 accumulate_thread_rusage(p, r); in k_getrusage() [all …]
|
D | auditfilter.c | 986 struct audit_krule *r, *nextr; in audit_update_watch() local 1008 list_for_each_entry_safe(r, nextr, &owatch->rules, rlist) { in audit_update_watch() 1010 oentry = container_of(r, struct audit_entry, rule); in audit_update_watch() 1041 audit_log_format(ab, " list=%d res=1", r->listnr); in audit_update_watch() 1060 struct audit_krule *r, *nextr; in audit_remove_parent_watches() local 1066 list_for_each_entry_safe(r, nextr, &w->rules, rlist) { in audit_remove_parent_watches() 1067 e = container_of(r, struct audit_entry, rule); in audit_remove_parent_watches() 1077 if (r->filterkey) { in audit_remove_parent_watches() 1080 r->filterkey); in audit_remove_parent_watches() 1084 r->listnr); in audit_remove_parent_watches() [all …]
|
D | resource.c | 77 struct resource *r = v, *p; in r_show() local 81 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) in r_show() 86 width, (unsigned long long) r->start, in r_show() 87 width, (unsigned long long) r->end, in r_show() 88 r->name ? r->name : "<BAD>"); in r_show()
|
D | kexec.c | 1339 int r; in vmcoreinfo_append_str() local 1342 r = vsnprintf(buf, sizeof(buf), fmt, args); in vmcoreinfo_append_str() 1345 if (r + vmcoreinfo_size > vmcoreinfo_max_size) in vmcoreinfo_append_str() 1346 r = vmcoreinfo_max_size - vmcoreinfo_size; in vmcoreinfo_append_str() 1348 memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r); in vmcoreinfo_append_str() 1350 vmcoreinfo_size += r; in vmcoreinfo_append_str()
|
D | printk.c | 611 int r; in printk() local 614 r = vprintk(fmt, args); in printk() 617 return r; in printk()
|
D | lockdep_proc.c | 449 static int lock_stat_cmp(const void *l, const void *r) in lock_stat_cmp() argument 451 const struct lock_stat_data *dl = l, *dr = r; in lock_stat_cmp()
|
D | sysctl.c | 2742 int r; in proc_do_cad_pid() local 2746 r = __do_proc_dointvec(&tmp, table, write, filp, buffer, in proc_do_cad_pid() 2748 if (r || !write) in proc_do_cad_pid() 2749 return r; in proc_do_cad_pid()
|
D | posix-timers.c | 892 struct timespec *t, struct timespec __user *r) in do_posix_clock_nonanosleep() argument
|
/kernel/trace/ |
D | trace.c | 2745 int r = 0; local 2773 r += sprintf(buf + r, "%s ", trace_options[i]); 2775 r += sprintf(buf + r, "no%s ", trace_options[i]); 2780 r += sprintf(buf + r, "%s ", 2783 r += sprintf(buf + r, "no%s ", 2787 r += sprintf(buf + r, "\n"); 2788 WARN_ON(r >= len + 2); 2790 r = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); 2794 return r; 2921 int r; local [all …]
|
D | trace_stack.c | 144 int r; in stack_max_size_read() local 146 r = snprintf(buf, sizeof(buf), "%ld\n", *ptr); in stack_max_size_read() 147 if (r > sizeof(buf)) in stack_max_size_read() 148 r = sizeof(buf); in stack_max_size_read() 149 return simple_read_from_buffer(ubuf, count, ppos, buf, r); in stack_max_size_read()
|
D | trace_sysprof.c | 282 int r; in sysprof_sample_read() local 284 r = sprintf(buf, "%ld\n", nsecs_to_usecs(sample_period)); in sysprof_sample_read() 286 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in sysprof_sample_read()
|
D | ftrace.c | 1698 int r; in ftrace_pid_read() local 1701 r = sprintf(buf, "swapper tasks\n"); in ftrace_pid_read() 1703 r = sprintf(buf, "%u\n", pid_nr(ftrace_pid_trace)); in ftrace_pid_read() 1705 r = sprintf(buf, "no pid\n"); in ftrace_pid_read() 1707 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in ftrace_pid_read()
|
D | ring_buffer.c | 2471 int r; in rb_simple_read() local 2474 r = sprintf(buf, "permanently disabled\n"); in rb_simple_read() 2476 r = sprintf(buf, "%d\n", test_bit(RB_BUFFERS_ON_BIT, p)); in rb_simple_read() 2478 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in rb_simple_read()
|