Home
last modified time | relevance | path

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

12

/linux/arch/x86/kernel/
A Dsignal.c255 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
268 !(ka->sa.sa_flags & SA_RESTORER) && in get_sigframe()
269 ka->sa.sa_restorer) { in get_sigframe()
346 if (ksig->ka.sa.sa_flags & SA_RESTORER) in __setup_frame()
347 restorer = ksig->ka.sa.sa_restorer; in __setup_frame()
408 if (ksig->ka.sa.sa_flags & SA_RESTORER) in __setup_rt_frame()
409 restorer = ksig->ka.sa.sa_restorer; in __setup_rt_frame()
587 restorer = ksig->ka.sa.sa_restorer; in x32_setup_rt_frame()
748 ksig->ka.sa.sa_flags & SA_IA32_ABI; in is_ia32_compat_frame()
759 ksig->ka.sa.sa_flags & SA_X32_ABI; in is_x32_frame()
[all …]
/linux/arch/s390/kernel/
A Dsignal.c281 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
289 static int setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
306 frame = get_sigframe(ka, regs, frame_size); in setup_frame()
337 if (ka->sa.sa_flags & SA_RESTORER) in setup_frame()
338 restorer = (unsigned long) ka->sa.sa_restorer; in setup_frame()
349 regs->psw.addr = (unsigned long) ka->sa.sa_handler; in setup_frame()
385 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame()
395 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
396 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
438 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
[all …]
A 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/arch/h8300/kernel/
A 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()
/linux/arch/mips/include/asm/
A 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/arch/sh/kernel/
A Dsignal_32.c253 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()
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()
391 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
439 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
[all …]
/linux/arch/x86/ia32/
A 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/include/trace/events/
A 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/arch/parisc/kernel/
A 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()
248 frame = get_sigframe(&ksig->ka, usp, sigframe_size); in setup_rt_frame()
314 haddr = A(ksig->ka.sa.sa_handler); in setup_rt_frame()
419 ksig->sig, ksig->ka, ksig->info, oldset, regs); in handle_signal()
481 syscall_restart(struct pt_regs *regs, struct k_sigaction *ka) in syscall_restart() argument
494 if (!(ka->sa.sa_flags & SA_RESTART)) { in syscall_restart()
582 syscall_restart(regs, &ksig.ka); in do_signal()
/linux/arch/x86/um/
A 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()
/linux/arch/arc/kernel/
A 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/arch/um/kernel/
A 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/arch/sparc/kernel/
A 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()
A 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()
/linux/arch/microblaze/kernel/
A 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/arch/xtensa/kernel/
A Dsignal.c351 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) != 0 && sas_ss_flags(sp) == 0) { in setup_frame()
364 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_frame()
376 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
377 ra = (unsigned long)ksig->ka.sa.sa_restorer; in setup_frame()
398 start_thread(regs, (unsigned long) ksig->ka.sa.sa_handler, in setup_frame()
455 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in do_signal()
/linux/arch/arm/kernel/
A 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/arch/alpha/kernel/
A 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/arch/powerpc/kernel/
A Dsignal.c166 static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka, in check_syscall_restart() argument
202 restart = !has_handler || (ka->sa.sa_flags & SA_RESTART) != 0; in check_syscall_restart()
242 check_syscall_restart(tsk->thread.regs, &ksig.ka, ksig.sig > 0); in do_signal()
271 if (ksig.ka.sa.sa_flags & SA_SIGINFO) in do_signal()
/linux/arch/arm64/kernel/
A 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()
A Dsignal.c732 static void setup_return(struct pt_regs *regs, struct k_sigaction *ka, in setup_return() argument
740 regs->pc = (unsigned long)ka->sa.sa_handler; in setup_return()
761 if (ka->sa.sa_flags & SA_RESTORER) in setup_return()
762 sigtramp = ka->sa.sa_restorer; in setup_return()
789 setup_return(regs, &ksig->ka, &user, usig); in setup_rt_frame()
790 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_rt_frame()
823 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
898 !(ksig.ka.sa.sa_flags & SA_RESTART)))) { in do_signal()
/linux/arch/openrisc/kernel/
A 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/scripts/coccinelle/api/
A 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/drivers/rtc/
A 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()
/linux/net/sched/
A Dact_pedit.c42 const struct nlattr *ka; in tcf_pedit_keys_ex_parse() local
55 nla_for_each_nested(ka, nla, rem) { in tcf_pedit_keys_ex_parse()
64 if (nla_type(ka) != TCA_PEDIT_KEY_EX) { in tcf_pedit_keys_ex_parse()
70 ka, pedit_key_ex_policy, in tcf_pedit_keys_ex_parse()

Completed in 31 milliseconds

12