Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/x86/kernel/
Dsignal.c233 get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size, in get_sigframe() argument
249 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
262 !(ka->sa.sa_flags & SA_RESTORER) && in get_sigframe()
263 ka->sa.sa_restorer) { in get_sigframe()
265 sp = (unsigned long) ka->sa.sa_restorer; in get_sigframe()
328 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fp); in __setup_frame()
341 if (ksig->ka.sa.sa_flags & SA_RESTORER) in __setup_frame()
342 restorer = ksig->ka.sa.sa_restorer; in __setup_frame()
359 regs->ip = (unsigned long)ksig->ka.sa.sa_handler; in __setup_frame()
383 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fp); in __setup_rt_frame()
[all …]
/kernel/linux/linux-5.10/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) )
/kernel/linux/linux-5.10/arch/h8300/kernel/
Dsignal.c170 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
184 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
185 ret = (unsigned char *)(ksig->ka.sa.sa_restorer); in setup_rt_frame()
200 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
210 handle_restart(struct pt_regs *regs, struct k_sigaction *ka) in handle_restart() argument
214 if (!ka) in handle_restart()
219 if (!ka) { in handle_restart()
226 if (!(ka->sa.sa_flags & SA_RESTART)) { in handle_restart()
249 handle_restart(regs, &ksig->ka); in handle_signal()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dsignal.c267 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument
279 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
287 static int setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
304 frame = get_sigframe(ka, regs, frame_size); in setup_frame()
335 if (ka->sa.sa_flags & SA_RESTORER) { in setup_frame()
336 restorer = (unsigned long) ka->sa.sa_restorer; in setup_frame()
352 regs->psw.addr = (unsigned long) ka->sa.sa_handler; in setup_frame()
388 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame()
398 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
399 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
[all …]
Dcompat_signal.c233 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument
245 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
270 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_frame32()
302 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame32()
304 ksig->ka.sa.sa_restorer | PSW32_ADDR_AMODE; in setup_frame32()
320 regs->psw.addr = (__force __u64) ksig->ka.sa.sa_handler; in setup_frame32()
359 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame32()
369 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame32()
371 ksig->ka.sa.sa_restorer | PSW32_ADDR_AMODE; in setup_rt_frame32()
402 regs->psw.addr = (__u64 __force) ksig->ka.sa.sa_handler; in setup_rt_frame32()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-5.10/arch/x86/ia32/
Dia32_signal.c213 if (ksig->ka.sa.sa_flags & SA_ONSTACK) in get_sigframe()
217 !(ksig->ka.sa.sa_flags & SA_RESTORER) && in get_sigframe()
218 ksig->ka.sa.sa_restorer) in get_sigframe()
219 sp = (unsigned long) ksig->ka.sa.sa_restorer; in get_sigframe()
254 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in ia32_setup_frame()
255 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_frame()
281 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_frame()
337 if (ksig->ka.sa.sa_flags & SA_RESTORER) in ia32_setup_rt_frame()
338 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_rt_frame()
358 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_rt_frame()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dsignal.c175 get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size) in get_sigframe() argument
181 (unsigned long)ka, sp, frame_size); in get_sigframe()
185 if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && ! sas_ss_flags(sp)) in get_sigframe()
247 frame = get_sigframe(&ksig->ka, usp, sizeof(*frame)); in setup_rt_frame()
320 haddr = A(ksig->ka.sa.sa_handler); in setup_rt_frame()
430 ksig->sig, ksig->ka, ksig->info, oldset, regs); in handle_signal()
492 syscall_restart(struct pt_regs *regs, struct k_sigaction *ka) in syscall_restart() argument
506 if (!(ka->sa.sa_flags & SA_RESTART)) { in syscall_restart()
594 syscall_restart(regs, &ksig.ka); in do_signal()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/x86/um/
Dsignal.c374 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_sc()
375 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_sc()
399 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_sc()
419 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_si()
420 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_si()
445 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_si()
503 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_signal_stack_si()
532 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_si()
533 err |= __put_user((void *)ksig->ka.sa.sa_restorer, in setup_signal_stack_si()
553 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_si()
/kernel/linux/linux-5.10/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.c462 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame32()
470 if (ksig->ka.ka_restorer) { in setup_frame32()
471 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_frame32()
594 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame32()
602 if (ksig->ka.ka_restorer) in setup_rt_frame32()
603 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame32()
628 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal32()
676 syscall_restart32(orig_i0, regs, &ksig.ka.sa); in do_signal32()
/kernel/linux/linux-5.10/arch/microblaze/kernel/
Dsignal.c170 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
226 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
238 handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler) in handle_restart() argument
248 if (has_handler && !(ka->sa.sa_flags & SA_RESTART)) { in handle_restart()
299 handle_restart(regs, &ksig.ka, 1); in do_signal()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dsignal.c343 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) != 0 && sas_ss_flags(sp) == 0) { in setup_frame()
356 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_frame()
368 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
369 ra = (unsigned long)ksig->ka.sa.sa_restorer; in setup_frame()
390 start_thread(regs, (unsigned long) ksig->ka.sa.sa_handler, in setup_frame()
447 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in do_signal()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsignal.c365 unsigned long handler = (unsigned long)ksig->ka.sa.sa_handler; in setup_return()
386 if (ksig->ka.sa.sa_flags & SA_THIRTYTWO) in setup_return()
417 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_return()
418 retcode = (unsigned long)ksig->ka.sa.sa_restorer; in setup_return()
428 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
439 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
556 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
625 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dsignal32.c318 static void compat_setup_return(struct pt_regs *regs, struct k_sigaction *ka, in compat_setup_return() argument
322 compat_ulong_t handler = ptr_to_compat(ka->sa.sa_handler); in compat_setup_return()
341 if (ka->sa.sa_flags & SA_RESTORER) { in compat_setup_return()
342 retcode = ptr_to_compat(ka->sa.sa_restorer); in compat_setup_return()
347 if (ka->sa.sa_flags & SA_SIGINFO) in compat_setup_return()
428 compat_setup_return(regs, &ksig->ka, frame->sig.retcode, frame, usig); in compat_setup_rt_frame()
451 compat_setup_return(regs, &ksig->ka, frame->retcode, frame, usig); in compat_setup_frame()
Dsignal.c727 static void setup_return(struct pt_regs *regs, struct k_sigaction *ka, in setup_return() argument
735 regs->pc = (unsigned long)ka->sa.sa_handler; in setup_return()
756 if (ka->sa.sa_flags & SA_RESTORER) in setup_return()
757 sigtramp = ka->sa.sa_restorer; in setup_return()
784 setup_return(regs, &ksig->ka, &user, usig); in setup_rt_frame()
785 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_rt_frame()
818 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
893 !(ksig.ka.sa.sa_flags & SA_RESTART)))) { in do_signal()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsignal.c194 static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka, in check_syscall_restart() argument
230 restart = !has_handler || (ka->sa.sa_flags & SA_RESTART) != 0; in check_syscall_restart()
270 check_syscall_restart(tsk->thread.regs, &ksig.ka, ksig.sig > 0); in do_signal()
299 if (ksig.ka.sa.sa_flags & SA_SIGINFO) in do_signal()
/kernel/linux/linux-5.10/arch/c6x/kernel/
Dsignal.c192 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
209 handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler) in handle_restart() argument
219 if (has_handler && !(ka->sa.sa_flags & SA_RESTART)) { in handle_restart()
250 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dsignal.c164 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
193 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; /* what we enter NOW */ in setup_rt_frame()
269 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/kernel/linux/linux-5.10/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…
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-mpc5121.c357 u32 ka; in mpc5121_rtc_probe() local
358 ka = in_be32(&rtc->regs->keep_alive); in mpc5121_rtc_probe()
359 if (ka & 0x02) { in mpc5121_rtc_probe()
362 out_be32(&rtc->regs->keep_alive, ka); in mpc5121_rtc_probe()

12