Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 27) sorted by relevance

12

/kernel/
Dreboot.c321 struct sys_off_handler *handler; in sys_off_notify() local
324 handler = container_of(nb, struct sys_off_handler, nb); in sys_off_notify()
325 data.cb_data = handler->cb_data; in sys_off_notify()
329 return handler->sys_off_cb(&data); in sys_off_notify()
336 struct sys_off_handler *handler; in alloc_sys_off_handler() local
344 handler = &platform_sys_off_handler; in alloc_sys_off_handler()
345 if (handler->cb_data) in alloc_sys_off_handler()
353 handler = kzalloc(sizeof(*handler), flags); in alloc_sys_off_handler()
354 if (!handler) in alloc_sys_off_handler()
358 return handler; in alloc_sys_off_handler()
[all …]
Dsignal.c76 static inline bool sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() argument
79 return handler == SIG_IGN || in sig_handler_ignored()
80 (handler == SIG_DFL && sig_kernel_ignore(sig)); in sig_handler_ignored()
85 void __user *handler; in sig_task_ignored() local
87 handler = sig_handler(t, sig); in sig_task_ignored()
94 handler == SIG_DFL && !(force && sig_kernel_only(sig))) in sig_task_ignored()
99 (handler == SIG_KTHREAD_KERNEL) && !force)) in sig_task_ignored()
102 return sig_handler_ignored(handler, sig); in sig_task_ignored()
561 void __user *handler = tsk->sighand->action[sig-1].sa.sa_handler; in unhandled_signal() local
565 if (handler != SIG_IGN && handler != SIG_DFL) in unhandled_signal()
[all …]
Dkprobes.c2050 if (rp && rp->handler) { in __kretprobe_trampoline_handler()
2055 rp->handler(ri, regs); in __kretprobe_trampoline_handler()
2149 if (WARN_ON_ONCE(!data) || !rp->handler) in kretprobe_rethook_handler()
2157 rp->handler(ri, regs); in kretprobe_rethook_handler()
/kernel/trace/
Drethook.c66 rcu_assign_pointer(rh->handler, NULL); in rethook_stop()
88 return (rethook_handler_t)rcu_dereference_check(rh->handler, in rethook_get_handler()
101 struct rethook *rethook_alloc(void *data, rethook_handler_t handler) in rethook_alloc() argument
105 if (!rh || !handler) { in rethook_alloc()
111 rcu_assign_pointer(rh->handler, handler); in rethook_alloc()
151 rethook_handler_t handler; in rethook_recycle() local
153 handler = rethook_get_handler(node->rethook); in rethook_recycle()
154 if (likely(handler)) in rethook_recycle()
170 rethook_handler_t handler = rethook_get_handler(rh); in rethook_try_get() local
174 if (unlikely(!handler)) in rethook_try_get()
[all …]
Dtrace_boot.c248 char *end, const char *handler, in trace_boot_hist_add_one_handler() argument
262 append_printf(bufp, end, ":%s(%s)", handler, p); in trace_boot_hist_add_one_handler()
302 const char *p, *handler; in trace_boot_hist_add_handlers() local
305 handler = xbc_node_get_data(hnode); in trace_boot_hist_add_handlers()
312 ret = trace_boot_hist_add_one_handler(node, bufp, end, handler, param); in trace_boot_hist_add_handlers()
318 ret = trace_boot_hist_add_one_handler(hnode, bufp, end, handler, param); in trace_boot_hist_add_handlers()
Dtrace_events_hist.c601 enum handler_id handler; member
1214 if (data->handler == HANDLER_ONMATCH) { in find_match_var()
3432 action->handler == HANDLER_ONMAX ? "onmax" : "onchange", in track_data_snapshot_print()
3462 if (data->handler == HANDLER_ONMAX) in track_data_print()
3464 else if (data->handler == HANDLER_ONCHANGE) in track_data_print()
3574 if (data->handler == HANDLER_ONMAX) in track_data_create()
3582 if (data->handler == HANDLER_ONCHANGE) in track_data_create()
3644 enum handler_id handler) in action_parse() argument
3676 if (handler == HANDLER_ONMAX) in action_parse()
3678 else if (handler == HANDLER_ONCHANGE) in action_parse()
[all …]
Dtrace_kprobe.c87 return tk->rp.handler != NULL; in trace_kprobe_is_return()
285 tk->rp.handler = kretprobe_dispatcher; in alloc_trace_kprobe()
/kernel/irq/
Ddevres.c52 irq_handler_t handler, irq_handler_t thread_fn, in devm_request_threaded_irq() argument
67 rc = request_threaded_irq(irq, handler, thread_fn, irqflags, devname, in devm_request_threaded_irq()
100 irq_handler_t handler, unsigned long irqflags, in devm_request_any_context_irq() argument
114 rc = request_any_context_irq(irq, handler, irqflags, devname, dev_id); in devm_request_any_context_irq()
220 irq_flow_handler_t handler) in devm_irq_alloc_generic_chip() argument
227 irq_base, reg_base, handler); in devm_irq_alloc_generic_chip()
Dmanage.c1079 action->handler == irq_forced_secondary_handler) in irq_finalize_oneshot()
1370 if (new->handler == irq_default_primary_handler) in irq_setup_forced_threading()
1380 if (new->handler && new->thread_fn) { in irq_setup_forced_threading()
1385 new->secondary->handler = irq_forced_secondary_handler; in irq_setup_forced_threading()
1393 new->thread_fn = new->handler; in irq_setup_forced_threading()
1394 new->handler = irq_default_primary_handler; in irq_setup_forced_threading()
1536 new->handler = irq_nested_primary_handler; in __setup_irq()
1697 } else if (new->handler == irq_default_primary_handler && in __setup_irq()
1955 action->handler(irq, dev_id); in __free_irq()
2139 int request_threaded_irq(unsigned int irq, irq_handler_t handler, in request_threaded_irq() argument
[all …]
Dgeneric-chip.c220 void __iomem *reg_base, irq_flow_handler_t handler) in irq_init_generic_chip() argument
227 gc->chip_types->handler = handler; in irq_init_generic_chip()
243 void __iomem *reg_base, irq_flow_handler_t handler) in irq_alloc_generic_chip() argument
250 handler); in irq_alloc_generic_chip()
287 irq_flow_handler_t handler, in __irq_alloc_domain_generic_chips() argument
328 NULL, handler); in __irq_alloc_domain_generic_chips()
429 irq_domain_set_info(d, virq, hw_irq, chip, gc, ct->handler, NULL, NULL); in irq_map_generic_chip()
503 irq_set_chip_and_handler(i, chip, ct->handler); in irq_setup_generic_chip()
527 irq_data_to_desc(d)->handle_irq = ct->handler; in irq_setup_alt_chip()
Ddebug.h27 desc->action->handler, desc->action->handler); in print_irq_desc()
Dhandle.c158 res = action->handler(irq, action->dev_id); in __handle_irq_event_percpu()
162 irq, action->handler)) in __handle_irq_event_percpu()
DKconfig50 # Edge style eoi based handler (cell)
145 Allow to specify the low level IRQ handler at run time.
Dspurious.c216 printk(KERN_ERR "[<%p>] %ps", action->handler, action->handler); in __report_bad_irq()
Dinternals.h401 void __iomem *reg_base, irq_flow_handler_t handler);
406 void __iomem *reg_base, irq_flow_handler_t handler) { } in irq_init_generic_chip() argument
Dchip.c34 .handler = bad_chained_irq,
767 res = action->handler(irq, action->dev_id); in handle_fasteoi_nmi()
945 res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id)); in handle_percpu_devid_irq()
980 res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id)); in handle_percpu_devid_fasteoi_nmi()
Dirqdomain.c1414 void *chip_data, irq_flow_handler_t handler, in irq_domain_set_info() argument
1418 __irq_set_handler(virq, handler, 0, handler_name); in irq_domain_set_info()
1928 void *chip_data, irq_flow_handler_t handler, in irq_domain_set_info() argument
1931 irq_set_chip_and_handler_name(virq, chip, handler, handler_name); in irq_domain_set_info()
Dmsi.c608 if (info->handler && info->handler_name) { in msi_domain_ops_init()
609 __irq_set_handler(virq, info->handler, 0, info->handler_name); in msi_domain_ops_init()
/kernel/time/
Dtick-oneshot.c62 void (*handler)(struct clock_event_device *), in tick_setup_oneshot()
65 newdev->event_handler = handler; in tick_setup_oneshot()
73 int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) in tick_switch_to_oneshot()
95 dev->event_handler = handler; in tick_switch_to_oneshot()
Dtick-internal.h101 void (*handler)(struct clock_event_device *),
105 extern int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *));
115 void (*handler)(struct clock_event_device *), in tick_setup_oneshot()
Dtick-common.c211 void (*handler)(struct clock_event_device *) = NULL; in tick_setup_device() local
248 handler = td->evtdev->event_handler; in tick_setup_device()
275 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
/kernel/power/
Dpoweroff.c33 .handler = handle_poweroff,
/kernel/events/
Duprobes.c1145 if (!uc->handler && !uc->ret_handler) in __uprobe_register()
2082 if (uc->handler) { in handler_chain()
2083 rc = uc->handler(uc, regs); in handler_chain()
2085 "bad rc=0x%x from %ps()\n", rc, uc->handler); in handler_chain()
/kernel/debug/
Ddebug_core.c990 .handler = sysrq_handle_dbg,
/kernel/rcu/
Dtree_stall.h1029 .handler = sysrq_show_rcu,

12