/kernel/ |
D | kexec.c | 197 int result; in kexec_load_check() local 204 result = security_kernel_load_data(LOADING_KEXEC_IMAGE); in kexec_load_check() 205 if (result < 0) in kexec_load_check() 206 return result; in kexec_load_check() 212 result = security_locked_down(LOCKDOWN_KEXEC); in kexec_load_check() 213 if (result) in kexec_load_check() 214 return result; in kexec_load_check() 235 int result; in SYSCALL_DEFINE4() local 237 result = kexec_load_check(nr_segments, flags); in SYSCALL_DEFINE4() 238 if (result) in SYSCALL_DEFINE4() [all …]
|
D | sysctl_binary.c | 916 ssize_t result, copied = 0; in bin_string() local 923 result = vfs_read(file, oldval, oldlen, &pos); in bin_string() 924 if (result < 0) in bin_string() 927 copied = result; in bin_string() 930 result = -EFAULT; in bin_string() 936 result = -EFAULT; in bin_string() 946 result = vfs_write(file, newval, newlen, &pos); in bin_string() 947 if (result < 0) in bin_string() 951 result = copied; in bin_string() 953 return result; in bin_string() [all …]
|
D | kexec_core.c | 563 int result; in kimage_set_destination() local 566 result = kimage_add_entry(image, destination | IND_DESTINATION); in kimage_set_destination() 568 return result; in kimage_set_destination() 574 int result; in kimage_add_page() local 577 result = kimage_add_entry(image, page | IND_SOURCE); in kimage_add_page() 579 return result; in kimage_add_page() 780 int result; in kimage_load_normal_segment() local 784 result = 0; in kimage_load_normal_segment() 793 result = kimage_set_destination(image, maddr); in kimage_load_normal_segment() 794 if (result < 0) in kimage_load_normal_segment() [all …]
|
D | auditsc.c | 455 int result = 0; in audit_filter_rules() local 461 result = audit_comparator(pid, f->op, f->val); in audit_filter_rules() 467 result = audit_comparator(ctx->ppid, f->op, f->val); in audit_filter_rules() 471 result = audit_exe_compare(tsk, rule->exe); in audit_filter_rules() 473 result = !result; in audit_filter_rules() 476 result = audit_uid_comparator(cred->uid, f->op, f->uid); in audit_filter_rules() 479 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules() 482 result = audit_uid_comparator(cred->suid, f->op, f->uid); in audit_filter_rules() 485 result = audit_uid_comparator(cred->fsuid, f->op, f->uid); in audit_filter_rules() 488 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules() [all …]
|
D | pid.c | 331 struct task_struct *result = NULL; in pid_task() local 337 result = hlist_entry(first, struct task_struct, pid_links[(type)]); in pid_task() 339 return result; in pid_task() 383 struct task_struct *result; in get_pid_task() local 385 result = pid_task(pid, type); in get_pid_task() 386 if (result) in get_pid_task() 387 get_task_struct(result); in get_pid_task() 389 return result; in get_pid_task()
|
D | auditfilter.c | 1322 int i, result = 0; in audit_filter() local 1332 result = audit_comparator(pid, f->op, f->val); in audit_filter() 1335 result = audit_uid_comparator(current_uid(), f->op, f->uid); in audit_filter() 1338 result = audit_gid_comparator(current_gid(), f->op, f->gid); in audit_filter() 1341 result = audit_uid_comparator(audit_get_loginuid(current), in audit_filter() 1345 result = audit_comparator(audit_loginuid_set(current), in audit_filter() 1349 result = audit_comparator(msgtype, f->op, f->val); in audit_filter() 1358 result = security_audit_rule_match(sid, in audit_filter() 1363 result = audit_exe_compare(current, e->rule.exe); in audit_filter() 1365 result = !result; in audit_filter() [all …]
|
D | kallsyms.c | 58 char *result, size_t maxlen) in kallsyms_expand_symbol() argument 87 *result = *tptr; in kallsyms_expand_symbol() 88 result++; in kallsyms_expand_symbol() 98 *result = '\0'; in kallsyms_expand_symbol()
|
D | kthread.c | 40 struct task_struct *result; member 235 create->result = ERR_PTR(-ENOMEM); in kthread() 247 create->result = current; in kthread() 287 create->result = ERR_PTR(pid); in create_kthread() 334 task = create->result; in __kthread_create_on_node()
|
D | cpu.c | 68 int result; member 493 st->result = 0; in __cpuhp_kick_ap() 511 if ((ret = st->result)) { in cpuhp_kick_ap() 688 st->result = cpuhp_invoke_callback(cpu, state, bringup, st->node, &st->last); in cpuhp_thread_fun() 694 WARN_ON_ONCE(st->result); in cpuhp_thread_fun() 696 st->result = cpuhp_invoke_callback(cpu, state, bringup, st->node, &st->last); in cpuhp_thread_fun() 699 if (st->result) { in cpuhp_thread_fun() 753 if ((ret = st->result) && st->last) { in cpuhp_invoke_ap_callback()
|
D | resource.c | 940 int result = -EBUSY; in __adjust_resource() local 966 result = 0; in __adjust_resource() 969 return result; in __adjust_resource() 985 int result; in adjust_resource() local 988 result = __adjust_resource(res, start, size); in adjust_resource() 990 return result; in adjust_resource()
|
D | signal.c | 1071 int ret = 0, result; in __send_signal() local 1075 result = TRACE_SIGNAL_IGNORED; in __send_signal() 1085 result = TRACE_SIGNAL_ALREADY_PENDING; in __send_signal() 1089 result = TRACE_SIGNAL_DELIVERED; in __send_signal() 1146 result = TRACE_SIGNAL_OVERFLOW_FAIL; in __send_signal() 1154 result = TRACE_SIGNAL_LOSE_INFO; in __send_signal() 1177 trace_signal_generate(sig, info, t, type != PIDTYPE_PID, result); in __send_signal() 1847 int ret, result; in send_sigqueue() local 1858 result = TRACE_SIGNAL_IGNORED; in send_sigqueue() 1870 result = TRACE_SIGNAL_ALREADY_PENDING; in send_sigqueue() [all …]
|
/kernel/time/ |
D | timeconv.c | 78 void time64_to_tm(time64_t totalsecs, int offset, struct tm *result) in time64_to_tm() argument 96 result->tm_hour = rem / SECS_PER_HOUR; in time64_to_tm() 98 result->tm_min = rem / 60; in time64_to_tm() 99 result->tm_sec = rem % 60; in time64_to_tm() 102 result->tm_wday = (4 + days) % 7; in time64_to_tm() 103 if (result->tm_wday < 0) in time64_to_tm() 104 result->tm_wday += 7; in time64_to_tm() 117 result->tm_year = y - 1900; in time64_to_tm() 119 result->tm_yday = days; in time64_to_tm() 126 result->tm_mon = y; in time64_to_tm() [all …]
|
D | ntp.c | 717 int result; in __do_adjtimex() local 755 result = time_state; /* mostly `TIME_OK' */ in __do_adjtimex() 758 result = TIME_ERROR; in __do_adjtimex() 782 result = TIME_OOP; in __do_adjtimex() 787 result = TIME_WAIT; in __do_adjtimex() 793 result = TIME_WAIT; in __do_adjtimex() 797 return result; in __do_adjtimex()
|
D | posix-clock.c | 59 __poll_t result = 0; in posix_clock_poll() local 65 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll() 69 return result; in posix_clock_poll()
|
D | alarmtimer.c | 538 enum alarmtimer_restart result = ALARMTIMER_NORESTART; in alarm_handle_timer() local 556 result = ALARMTIMER_RESTART; in alarm_handle_timer() 560 return result; in alarm_handle_timer()
|
/kernel/locking/ |
D | semaphore.c | 78 int result = 0; in down_interruptible() local 84 result = __down_interruptible(sem); in down_interruptible() 87 return result; in down_interruptible() 104 int result = 0; in down_killable() local 110 result = __down_killable(sem); in down_killable() 113 return result; in down_killable() 158 int result = 0; in down_timeout() local 164 result = __down_timeout(sem, timeout); in down_timeout() 167 return result; in down_timeout()
|
D | test-ww_mutex.c | 154 int result; member 181 abba->result = err; in test_abba_work() 222 if (err || abba.result) { in test_abba() 224 __func__, err, abba.result); in test_abba() 228 if (err != -EDEADLK && abba.result != -EDEADLK) { in test_abba() 230 __func__, err, abba.result); in test_abba() 243 int result; member 272 cycle->result = err ?: erra; in test_cycle_work() 301 cycle->result = 0; in __test_cycle() 313 if (!cycle->result) in __test_cycle() [all …]
|
/kernel/sched/ |
D | loadavg.c | 112 unsigned long result = 1UL << frac_bits; in fixed_power_int() local 117 result *= x; in fixed_power_int() 118 result += 1UL << (frac_bits - 1); in fixed_power_int() 119 result >>= frac_bits; in fixed_power_int() 130 return result; in fixed_power_int()
|
/kernel/debug/kdb/ |
D | kdb_main.c | 996 int result = kdb_defcmd2(cmdstr, argv[0]); in kdb_parse() local 1001 return result; in kdb_parse() 1048 int result; in kdb_parse() local 1054 result = (*tp->cmd_func)(argc-1, (const char **)argv); in kdb_parse() 1055 if (result && ignore_errors && result > KDB_CMD_GO) in kdb_parse() 1056 result = 0; in kdb_parse() 1060 return result; in kdb_parse() 1065 return result; in kdb_parse() 1400 int result = 1; in kdb_main_loop() local 1422 result = kdb_local(reason2, error, regs, db_result); in kdb_main_loop() [all …]
|
/kernel/gcov/ |
D | fs.c | 333 char *result; in get_link_target() local 338 result = link_target(srctree, rel, ext->ext); in get_link_target() 340 result = link_target(objtree, rel, ext->ext); in get_link_target() 343 result = link_target(NULL, filename, ext->ext); in get_link_target() 346 return result; in get_link_target()
|
D | gcc_3_4.c | 171 unsigned int result = 0; in num_counter_active() local 175 result++; in num_counter_active() 177 return result; in num_counter_active()
|
D | gcc_4_7.c | 183 unsigned int result = 0; in num_counter_active() local 187 result++; in num_counter_active() 189 return result; in num_counter_active()
|
/kernel/trace/ |
D | trace_stat.c | 93 int result; in insert_stat() local 96 result = cmp(data->stat, this->stat); in insert_stat() 99 if (result >= 0) in insert_stat()
|
/kernel/bpf/ |
D | inode.c | 606 struct fs_parse_result result; in bpf_parse_param() local 609 opt = fs_parse(fc, &bpf_fs_parameters, param, &result); in bpf_parse_param() 619 opts->mode = result.uint_32 & S_IALLUGO; in bpf_parse_param()
|
/kernel/events/ |
D | uprobes.c | 2015 int result; in is_trap_at_addr() local 2018 result = __get_user(opcode, (uprobe_opcode_t __user *)vaddr); in is_trap_at_addr() 2021 if (likely(result == 0)) in is_trap_at_addr() 2030 result = get_user_pages_remote(NULL, mm, vaddr, 1, FOLL_FORCE, &page, in is_trap_at_addr() 2032 if (result < 0) in is_trap_at_addr() 2033 return result; in is_trap_at_addr()
|