Home
last modified time | relevance | path

Searched refs:ka (Results 1 – 25 of 49) sorted by relevance

12

/Linux-v6.1/arch/mips/include/asm/
Dsignal.h17 #define sig_uses_siginfo(ka, abi) \ argument
19 ((ka)->sa.sa_flags & SA_SIGINFO))
21 #define sig_uses_siginfo(ka, abi) \ argument
24 ((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
/Linux-v6.1/arch/x86/kernel/
Dsignal.c241 get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size, in get_sigframe() argument
256 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
269 !(ka->sa.sa_flags & SA_RESTORER) && in get_sigframe()
270 ka->sa.sa_restorer) { in get_sigframe()
272 sp = (unsigned long) ka->sa.sa_restorer; in get_sigframe()
334 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fp); in __setup_frame()
347 if (ksig->ka.sa.sa_flags & SA_RESTORER) in __setup_frame()
348 restorer = ksig->ka.sa.sa_restorer; in __setup_frame()
365 regs->ip = (unsigned long)ksig->ka.sa.sa_handler; in __setup_frame()
389 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fp); in __setup_rt_frame()
[all …]
/Linux-v6.1/arch/s390/kernel/
Dsignal.c268 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument
280 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
288 static int setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
305 frame = get_sigframe(ka, regs, frame_size); in setup_frame()
336 if (ka->sa.sa_flags & SA_RESTORER) in setup_frame()
337 restorer = (unsigned long) ka->sa.sa_restorer; in setup_frame()
348 regs->psw.addr = (unsigned long) ka->sa.sa_handler; in setup_frame()
384 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame()
394 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
395 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
[all …]
Dcompat_signal.c234 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument
246 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
271 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_frame32()
303 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame32()
305 ksig->ka.sa.sa_restorer | PSW32_ADDR_AMODE; in setup_frame32()
317 regs->psw.addr = (__force __u64) ksig->ka.sa.sa_handler; in setup_frame32()
356 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame32()
366 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame32()
368 ksig->ka.sa.sa_restorer | PSW32_ADDR_AMODE; in setup_rt_frame32()
396 regs->psw.addr = (__u64 __force) ksig->ka.sa.sa_handler; in setup_rt_frame32()
[all …]
/Linux-v6.1/arch/sh/kernel/
Dsignal_32.c251 get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size) in get_sigframe() argument
253 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
272 frame = get_sigframe(&ksig->ka, regs->regs[15], sizeof(*frame)); in setup_frame()
285 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
286 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_frame()
316 (struct fdpic_func_descriptor __user *)ksig->ka.sa.sa_handler; in setup_frame()
321 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_frame()
338 frame = get_sigframe(&ksig->ka, regs->regs[15], sizeof(*frame)); in setup_rt_frame()
355 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
356 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
[all …]
/Linux-v6.1/include/trace/events/
Dsignal.h98 TP_PROTO(int sig, struct kernel_siginfo *info, struct k_sigaction *ka),
100 TP_ARGS(sig, info, ka),
113 __entry->sa_handler = (unsigned long)ka->sa.sa_handler;
114 __entry->sa_flags = ka->sa.sa_flags;
/Linux-v6.1/arch/x86/ia32/
Dia32_signal.c212 if (ksig->ka.sa.sa_flags & SA_ONSTACK) in get_sigframe()
216 !(ksig->ka.sa.sa_flags & SA_RESTORER) && in get_sigframe()
217 ksig->ka.sa.sa_restorer) in get_sigframe()
218 sp = (unsigned long) ksig->ka.sa.sa_restorer; in get_sigframe()
253 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in ia32_setup_frame()
254 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_frame()
280 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_frame()
336 if (ksig->ka.sa.sa_flags & SA_RESTORER) in ia32_setup_rt_frame()
337 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_rt_frame()
357 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_rt_frame()
/Linux-v6.1/arch/parisc/kernel/
Dsignal.c161 get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size) in get_sigframe() argument
167 __func__, (unsigned long)ka, sp, frame_size); in get_sigframe()
171 if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && ! sas_ss_flags(sp)) in get_sigframe()
234 frame = get_sigframe(&ksig->ka, usp, sigframe_size); in setup_rt_frame()
284 haddr = A(ksig->ka.sa.sa_handler); in setup_rt_frame()
389 __func__, ksig->sig, &ksig->ka, &ksig->info, oldset, regs); in handle_signal()
451 syscall_restart(struct pt_regs *regs, struct k_sigaction *ka) in syscall_restart() argument
468 if (!(ka->sa.sa_flags & SA_RESTART)) { in syscall_restart()
563 syscall_restart(regs, &ksig.ka); in do_signal()
/Linux-v6.1/arch/um/kernel/
Dsignal.c69 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
82 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) && (sas_ss_flags(sp) == 0)) in handle_signal()
86 if (!(ksig->ka.sa.sa_flags & SA_SIGINFO)) in handle_signal()
/Linux-v6.1/arch/arc/kernel/
Dsignal.c294 if (unlikely(ksig->ka.sa.sa_flags & SA_SIGINFO)) { in setup_rt_frame()
319 regs->ret = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
325 if(!(ksig->ka.sa.sa_flags & SA_RESTORER)) in setup_rt_frame()
328 regs->blink = (unsigned long)ksig->ka.sa.sa_restorer; in setup_rt_frame()
343 static void arc_restart_syscall(struct k_sigaction *ka, struct pt_regs *regs) in arc_restart_syscall() argument
363 if (!(ka->sa.sa_flags & SA_RESTART)) { in arc_restart_syscall()
410 arc_restart_syscall(&ksig.ka, regs); in do_signal()
/Linux-v6.1/arch/x86/um/
Dsignal.c375 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_sc()
376 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_sc()
400 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_sc()
420 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_si()
421 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_si()
446 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_si()
504 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_signal_stack_si()
533 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_si()
534 err |= __put_user((void *)ksig->ka.sa.sa_restorer, in setup_signal_stack_si()
554 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_si()
/Linux-v6.1/arch/sparc/kernel/
Dsignal_32.c297 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
301 if (ksig->ka.ka_restorer) in setup_frame()
302 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_frame()
395 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
398 if (ksig->ka.ka_restorer) in setup_rt_frame()
399 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame()
423 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
496 syscall_restart(orig_i0, regs, &ksig.ka.sa); in do_signal()
Dsignal32.c461 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame32()
469 if (ksig->ka.ka_restorer) { in setup_frame32()
470 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_frame32()
593 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame32()
601 if (ksig->ka.ka_restorer) in setup_rt_frame32()
602 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame32()
627 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal32()
675 syscall_restart32(orig_i0, regs, &ksig.ka.sa); in do_signal32()
/Linux-v6.1/arch/microblaze/kernel/
Dsignal.c168 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
219 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
231 handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler) in handle_restart() argument
241 if (has_handler && !(ka->sa.sa_flags & SA_RESTART)) { in handle_restart()
292 handle_restart(regs, &ksig.ka, 1); in do_signal()
/Linux-v6.1/arch/xtensa/kernel/
Dsignal.c350 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) != 0 && sas_ss_flags(sp) == 0) { in setup_frame()
363 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_frame()
375 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
376 ra = (unsigned long)ksig->ka.sa.sa_restorer; in setup_frame()
397 start_thread(regs, (unsigned long) ksig->ka.sa.sa_handler, in setup_frame()
454 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in do_signal()
/Linux-v6.1/arch/arm/kernel/
Dsignal.c323 unsigned long handler = (unsigned long)ksig->ka.sa.sa_handler; in setup_return()
344 if (ksig->ka.sa.sa_flags & SA_THIRTYTWO) in setup_return()
375 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_return()
376 retcode = (unsigned long)ksig->ka.sa.sa_restorer; in setup_return()
386 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
397 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
514 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
583 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/Linux-v6.1/arch/alpha/kernel/
Dsignal.c344 r26 = (unsigned long) ksig->ka.ka_restorer; in setup_frame()
359 regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
398 r26 = (unsigned long) ksig->ka.ka_restorer; in setup_rt_frame()
413 regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
437 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
447 struct pt_regs *regs, struct k_sigaction *ka) in syscall_restart() argument
451 if (!(ka->sa.sa_flags & SA_RESTART)) { in syscall_restart()
494 syscall_restart(r0, r19, regs, &ksig.ka); in do_signal()
/Linux-v6.1/arch/arm64/kernel/
Dsignal32.c314 static void compat_setup_return(struct pt_regs *regs, struct k_sigaction *ka, in compat_setup_return() argument
318 compat_ulong_t handler = ptr_to_compat(ka->sa.sa_handler); in compat_setup_return()
337 if (ka->sa.sa_flags & SA_RESTORER) { in compat_setup_return()
338 retcode = ptr_to_compat(ka->sa.sa_restorer); in compat_setup_return()
343 if (ka->sa.sa_flags & SA_SIGINFO) in compat_setup_return()
424 compat_setup_return(regs, &ksig->ka, frame->sig.retcode, frame, usig); in compat_setup_rt_frame()
447 compat_setup_return(regs, &ksig->ka, frame->retcode, frame, usig); in compat_setup_frame()
Dsignal.c898 static void setup_return(struct pt_regs *regs, struct k_sigaction *ka, in setup_return() argument
906 regs->pc = (unsigned long)ka->sa.sa_handler; in setup_return()
944 if (ka->sa.sa_flags & SA_RESTORER) in setup_return()
945 sigtramp = ka->sa.sa_restorer; in setup_return()
972 setup_return(regs, &ksig->ka, &user, usig); in setup_rt_frame()
973 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_rt_frame()
1006 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
1081 !(ksig.ka.sa.sa_flags & SA_RESTART)))) { in do_signal()
/Linux-v6.1/arch/powerpc/kernel/
Dsignal.c181 static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka, in check_syscall_restart() argument
217 restart = !has_handler || (ka->sa.sa_flags & SA_RESTART) != 0; in check_syscall_restart()
257 check_syscall_restart(tsk->thread.regs, &ksig.ka, ksig.sig > 0); in do_signal()
286 if (ksig.ka.sa.sa_flags & SA_SIGINFO) in do_signal()
/Linux-v6.1/arch/openrisc/kernel/
Dsignal.c162 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
191 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; /* what we enter NOW */ in setup_rt_frame()
267 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/Linux-v6.1/scripts/coccinelle/api/
Dkfree_mismatch.cocci213 ka << alloc.kok;
218 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
222 ka << alloc.kok;
227 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
/Linux-v6.1/drivers/rtc/
Drtc-mpc5121.c344 u32 ka; in mpc5121_rtc_probe() local
345 ka = in_be32(&rtc->regs->keep_alive); in mpc5121_rtc_probe()
346 if (ka & 0x02) { in mpc5121_rtc_probe()
349 out_be32(&rtc->regs->keep_alive, ka); in mpc5121_rtc_probe()
/Linux-v6.1/arch/nios2/kernel/
Dsignal.c190 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
212 regs->ea = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
276 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/Linux-v6.1/arch/csky/kernel/
Dsignal.c168 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
197 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()

12