Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 129) sorted by relevance

123456

/kernel/time/
Dposix-clock.c43 int err = -EINVAL; in posix_clock_read() local
49 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read()
53 return err; in posix_clock_read()
76 int err = -ENOTTY; in posix_clock_ioctl() local
82 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl()
86 return err; in posix_clock_ioctl()
94 int err = -ENOTTY; in posix_clock_compat_ioctl() local
100 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_compat_ioctl()
104 return err; in posix_clock_compat_ioctl()
110 int err; in posix_clock_open() local
[all …]
/kernel/
Dusermode_driver.c37 int err = written; in blob_to_mnt() local
38 if (err >= 0) in blob_to_mnt()
39 err = -ENOMEM; in blob_to_mnt()
42 return ERR_PTR(err); in blob_to_mnt()
101 int err; in umd_setup() local
104 err = create_pipe_files(to_umh, 0); in umd_setup()
105 if (err) in umd_setup()
106 return err; in umd_setup()
107 err = replace_fd(0, to_umh[0], 0); in umd_setup()
109 if (err < 0) { in umd_setup()
[all …]
Daudit.c709 goto err; in auditd_send_unicast_skb()
719 goto err; in auditd_send_unicast_skb()
723 err: in auditd_send_unicast_skb()
1013 goto err; in audit_send_reply()
1019 goto err; in audit_send_reply()
1023 err: in audit_send_reply()
1033 int err = 0; in audit_netlink_ok() local
1072 err = -EPERM; in audit_netlink_ok()
1078 err = -EPERM; in audit_netlink_ok()
1081 err = -EINVAL; in audit_netlink_ok()
[all …]
Dauditfilter.c242 int i, err; in audit_to_entry_common() local
244 err = -EINVAL; in audit_to_entry_common()
271 err = -ENOMEM; in audit_to_entry_common()
303 return ERR_PTR(err); in audit_to_entry_common()
452 int err = 0; in audit_data_to_entry() local
469 err = -EINVAL; in audit_data_to_entry()
485 err = audit_field_valid(entry, f); in audit_data_to_entry()
486 if (err) in audit_data_to_entry()
489 err = -EINVAL; in audit_data_to_entry()
526 err = PTR_ERR(str); in audit_data_to_entry()
[all …]
Dprofile.c156 int err = -EINVAL; in profile_event_register() local
160 err = blocking_notifier_chain_register( in profile_event_register()
164 err = blocking_notifier_chain_register( in profile_event_register()
169 return err; in profile_event_register()
175 int err = -EINVAL; in profile_event_unregister() local
179 err = blocking_notifier_chain_unregister( in profile_event_unregister()
183 err = blocking_notifier_chain_unregister( in profile_event_unregister()
188 return err; in profile_event_unregister()
415 int err; in prof_cpu_mask_proc_write() local
420 err = cpumask_parse_user(buffer, count, new_value); in prof_cpu_mask_proc_write()
[all …]
Dparams.c127 int err; in parse_one() local
143 err = params[i].ops->set(val, &params[i]); in parse_one()
145 err = -EPERM; in parse_one()
147 return err; in parse_one()
171 char *param, *val, *err = NULL; in parse_args() local
186 return err ?: args; in parse_args()
210 err = ERR_PTR(ret); in parse_args()
213 return err; in parse_args()
333 int err = 0; in param_set_bool_enable_only() local
340 err = param_set_bool(val, &dummy_kp); in param_set_bool_enable_only()
[all …]
Dnsproxy.c72 int err; in create_new_namespaces() local
80 err = PTR_ERR(new_nsp->mnt_ns); in create_new_namespaces()
86 err = PTR_ERR(new_nsp->uts_ns); in create_new_namespaces()
92 err = PTR_ERR(new_nsp->ipc_ns); in create_new_namespaces()
99 err = PTR_ERR(new_nsp->pid_ns_for_children); in create_new_namespaces()
106 err = PTR_ERR(new_nsp->cgroup_ns); in create_new_namespaces()
112 err = PTR_ERR(new_nsp->net_ns); in create_new_namespaces()
119 err = PTR_ERR(new_nsp->time_ns_for_children); in create_new_namespaces()
144 return ERR_PTR(err); in create_new_namespaces()
215 int err = 0; in unshare_nsproxy_namespaces() local
[all …]
Dsysctl.c494 int *i, vleft, first = 1, err = 0; in __do_proc_dointvec() local
528 err = proc_get_long(&p, &left, &lval, &neg, in __do_proc_dointvec()
531 if (err) in __do_proc_dointvec()
534 err = -EINVAL; in __do_proc_dointvec()
539 err = -EINVAL; in __do_proc_dointvec()
548 if (!write && !first && left && !err) in __do_proc_dointvec()
550 if (write && !err && left) in __do_proc_dointvec()
553 return err ? : -EINVAL; in __do_proc_dointvec()
557 return err; in __do_proc_dointvec()
580 int err = 0; in do_proc_douintvec_w() local
[all …]
/kernel/bpf/
Dsyscall.c117 int err; in find_and_alloc_map() local
127 err = ops->map_alloc_check(attr); in find_and_alloc_map()
128 if (err) in find_and_alloc_map()
129 return ERR_PTR(err); in find_and_alloc_map()
183 int err; in bpf_map_update_value() local
202 err = bpf_percpu_hash_update(map, key, value, flags); in bpf_map_update_value()
204 err = bpf_percpu_array_update(map, key, value, flags); in bpf_map_update_value()
206 err = bpf_percpu_cgroup_storage_update(map, key, value, in bpf_map_update_value()
210 err = bpf_fd_array_map_update_elem(map, f.file, key, value, in bpf_map_update_value()
215 err = bpf_fd_htab_map_update_elem(map, f.file, key, value, in bpf_map_update_value()
[all …]
Dbpf_iter.c99 int err = 0, num_objs = 0; in bpf_seq_read() local
109 err = -ENOMEM; in bpf_seq_read()
116 err = copy_to_user(buf, seq->buf + seq->from, n); in bpf_seq_read()
117 if (err) { in bpf_seq_read()
118 err = -EFAULT; in bpf_seq_read()
132 err = PTR_ERR(p); in bpf_seq_read()
138 err = seq->op->show(seq, p); in bpf_seq_read()
139 if (err > 0) { in bpf_seq_read()
145 } else if (err < 0 || seq_has_overflowed(seq)) { in bpf_seq_read()
146 if (!err) in bpf_seq_read()
[all …]
Dtrampoline.c178 int err = 0; in bpf_trampoline_module_get() local
183 err = -ENOENT; in bpf_trampoline_module_get()
186 return err; in bpf_trampoline_module_get()
361 int err = bpf_arch_text_poke(im->ip_after_call, BPF_MOD_JUMP, in bpf_tramp_image_put() local
363 WARN_ON(err); in bpf_tramp_image_put()
385 int err = -ENOMEM; in bpf_tramp_image_alloc() local
391 err = bpf_jit_charge_modmem(PAGE_SIZE); in bpf_tramp_image_alloc()
392 if (err) in bpf_tramp_image_alloc()
395 err = -ENOMEM; in bpf_tramp_image_alloc()
401 err = percpu_ref_init(&im->pcref, __bpf_tramp_image_release, 0, GFP_KERNEL); in bpf_tramp_image_alloc()
[all …]
Dhelpers.c494 int err; in __bpf_strtoll() local
496 err = __bpf_strtoull(buf, buf_len, flags, &_res, &is_negative); in __bpf_strtoll()
497 if (err < 0) in __bpf_strtoll()
498 return err; in __bpf_strtoll()
508 return err; in __bpf_strtoll()
515 int err; in BPF_CALL_4() local
517 err = __bpf_strtoll(buf, buf_len, flags, &_res); in BPF_CALL_4()
518 if (err < 0) in BPF_CALL_4()
519 return err; in BPF_CALL_4()
523 return err; in BPF_CALL_4()
[all …]
Dverifier.c1122 int id, err; in acquire_reference_state() local
1124 err = resize_reference_state(state, state->acquired_refs + 1); in acquire_reference_state()
1125 if (err) in acquire_reference_state()
1126 return err; in acquire_reference_state()
1193 int err; in copy_func_state() local
1196 err = copy_reference_state(dst, src); in copy_func_state()
1197 if (err) in copy_func_state()
1198 return err; in copy_func_state()
1206 int i, err; in copy_verifier_state() local
1235 err = copy_func_state(dst, src->frame[i]); in copy_verifier_state()
[all …]
Dreuseport_array.c67 int err; in reuseport_array_delete_elem() local
84 err = 0; in reuseport_array_delete_elem()
86 err = -ENOENT; in reuseport_array_delete_elem()
91 return err; in reuseport_array_delete_elem()
172 int err; in bpf_fd_reuseport_array_lookup_elem() local
181 err = 0; in bpf_fd_reuseport_array_lookup_elem()
183 err = -ENOENT; in bpf_fd_reuseport_array_lookup_elem()
187 return err; in bpf_fd_reuseport_array_lookup_elem()
244 int err, fd; in bpf_fd_reuseport_array_update_elem() local
262 socket = sockfd_lookup(fd, &err); in bpf_fd_reuseport_array_update_elem()
[all …]
Ddevmap.c161 int err; in dev_map_alloc() local
170 err = dev_map_init_map(dtab, attr); in dev_map_alloc()
171 if (err) { in dev_map_alloc()
173 return ERR_PTR(err); in dev_map_alloc()
337 int err; in dev_map_bpf_prog_run() local
345 err = xdp_update_frame_from_buff(&xdp, xdpf); in dev_map_bpf_prog_run()
346 if (unlikely(err < 0)) in dev_map_bpf_prog_run()
369 int sent = 0, err = 0; in bq_xmit_all() local
393 err = sent; in bq_xmit_all()
405 trace_xdp_devmap_xmit(bq->dev_rx, dev, sent, cnt - sent, err); in bq_xmit_all()
[all …]
Dbpf_struct_ops.c362 int prog_fd, err = 0; in bpf_struct_ops_map_update_elem() local
372 err = check_zero_holes(st_ops->value_type, value); in bpf_struct_ops_map_update_elem()
373 if (err) in bpf_struct_ops_map_update_elem()
374 return err; in bpf_struct_ops_map_update_elem()
377 err = check_zero_holes(t, uvalue->data); in bpf_struct_ops_map_update_elem()
378 if (err) in bpf_struct_ops_map_update_elem()
379 return err; in bpf_struct_ops_map_update_elem()
394 err = -EBUSY; in bpf_struct_ops_map_update_elem()
420 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem()
421 if (err < 0) in bpf_struct_ops_map_update_elem()
[all …]
Dbpf_local_storage.c309 int err; in bpf_local_storage_alloc() local
311 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
312 if (err) in bpf_local_storage_alloc()
313 return err; in bpf_local_storage_alloc()
318 err = -ENOMEM; in bpf_local_storage_alloc()
344 err = -EAGAIN; in bpf_local_storage_alloc()
363 return err; in bpf_local_storage_alloc()
379 int err; in bpf_local_storage_update() local
395 err = check_flags(NULL, map_flags); in bpf_local_storage_update()
396 if (err) in bpf_local_storage_update()
[all …]
Dbpf_task_storage.c124 int fd, err; in bpf_pid_task_storage_lookup_elem() local
137 err = -ENOENT; in bpf_pid_task_storage_lookup_elem()
148 return ERR_PTR(err); in bpf_pid_task_storage_lookup_elem()
158 int fd, err; in bpf_pid_task_storage_update_elem() local
171 err = -ENOENT; in bpf_pid_task_storage_update_elem()
181 err = PTR_ERR_OR_ZERO(sdata); in bpf_pid_task_storage_update_elem()
184 return err; in bpf_pid_task_storage_update_elem()
205 int fd, err; in bpf_pid_task_storage_delete_elem() local
218 err = -ENOENT; in bpf_pid_task_storage_delete_elem()
223 err = task_storage_delete(task, map); in bpf_pid_task_storage_delete_elem()
[all …]
/kernel/module/
Dmain.c603 int err; in ref_module() local
609 err = strong_try_module_get(b); in ref_module()
610 if (err) in ref_module()
611 return err; in ref_module()
613 err = add_module_usage(a, b); in ref_module()
614 if (err) { in ref_module()
616 return err; in ref_module()
1072 int err; in resolve_symbol() local
1097 err = verify_namespace_is_imported(info, fsa.sym, mod); in resolve_symbol()
1098 if (err) { in resolve_symbol()
[all …]
Dsysfs.c340 int err; in mod_sysfs_init() local
345 err = -EINVAL; in mod_sysfs_init()
353 err = -EINVAL; in mod_sysfs_init()
361 err = kobject_init_and_add(&mod->mkobj.kobj, &module_ktype, NULL, in mod_sysfs_init()
363 if (err) in mod_sysfs_init()
367 return err; in mod_sysfs_init()
375 int err; in mod_sysfs_setup() local
377 err = mod_sysfs_init(mod); in mod_sysfs_setup()
378 if (err) in mod_sysfs_setup()
383 err = -ENOMEM; in mod_sysfs_setup()
[all …]
/kernel/bpf/preload/
Dbpf_preload_kern.c36 int err; in load_skel() local
41 err = iterators_bpf__load(skel); in load_skel()
42 if (err) in load_skel()
44 err = iterators_bpf__attach(skel); in load_skel()
45 if (err) in load_skel()
49 err = PTR_ERR(maps_link); in load_skel()
54 err = PTR_ERR(progs_link); in load_skel()
67 return err; in load_skel()
72 int err; in load() local
74 err = load_skel(); in load()
[all …]
/kernel/locking/
Dtest-ww_mutex.c190 int err; in test_abba_work() local
203 err = ww_mutex_lock(&abba->a_mutex, &ctx); in test_abba_work()
204 if (abba->resolve && err == -EDEADLK) { in test_abba_work()
207 err = ww_mutex_lock(&abba->b_mutex, &ctx); in test_abba_work()
210 if (!err) in test_abba_work()
215 abba->result = err; in test_abba_work()
222 int err, ret; in test_abba() local
245 err = ww_mutex_lock(&abba.b_mutex, &ctx); in test_abba()
246 if (resolve && err == -EDEADLK) { in test_abba()
249 err = ww_mutex_lock(&abba.a_mutex, &ctx); in test_abba()
[all …]
/kernel/events/
Dhw_breakpoint.c209 goto err; in init_breakpoint_slots()
214 goto err; in init_breakpoint_slots()
216 goto err; in init_breakpoint_slots()
220 err: in init_breakpoint_slots()
655 int err; in __modify_bp_slot() local
659 err = __reserve_bp_slot(bp, new_type); in __modify_bp_slot()
660 if (err) { in __modify_bp_slot()
672 return err; in __modify_bp_slot()
721 int err; in hw_breakpoint_parse() local
723 err = hw_breakpoint_arch_parse(bp, attr, hw); in hw_breakpoint_parse()
[all …]
/kernel/irq/
Dresend.c108 int err = 0; in check_irq_resend() local
129 err = irq_sw_resend(desc); in check_irq_resend()
132 if (!err) in check_irq_resend()
134 return err; in check_irq_resend()
159 int err; in irq_inject_interrupt() local
176 err = -EINVAL; in irq_inject_interrupt()
178 err = check_irq_resend(desc, true); in irq_inject_interrupt()
181 return err; in irq_inject_interrupt()
/kernel/trace/
Dtrace_events_filter.c170 static void parse_error(struct filter_parse_error *pe, int err, int pos) in parse_error() argument
172 pe->lasterr = err; in parse_error()
1626 static int calc_stack(const char *str, int *parens, int *preds, int *err) in calc_stack() argument
1636 *err = 0; in calc_stack()
1668 *err = i; in calc_stack()
1681 *err = last_quote; in calc_stack()
1698 *err = i; in calc_stack()
1713 *err = 0; in calc_stack()
1798 int err; in process_system_preds() local
1813 err = process_preds(file->event_call, filter_string, filter, pe); in process_system_preds()
[all …]

123456