Lines Matching refs:ksig
230 static inline void __user *get_sigframe(struct ksignal *ksig, in get_sigframe() argument
246 sp = (sigsp(sp, ksig) - framesize); in get_sigframe()
257 setup_return(struct pt_regs *regs, struct ksignal *ksig, void __user * frame) in setup_return() argument
259 unsigned long handler = (unsigned long)ksig->ka.sa.sa_handler; in setup_return()
263 regs->uregs[0] = ksig->sig; in setup_return()
272 setup_rt_frame(struct ksignal *ksig, sigset_t * set, struct pt_regs *regs) in setup_rt_frame() argument
275 get_sigframe(ksig, regs, sizeof(*frame)); in setup_rt_frame()
287 setup_return(regs, ksig, frame); in setup_rt_frame()
288 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_rt_frame()
289 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_rt_frame()
300 static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) in handle_signal() argument
315 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
329 ret = setup_rt_frame(ksig, oldset, regs); in handle_signal()
331 signal_setup_done(ret, ksig, 0); in handle_signal()
345 struct ksignal ksig; in do_signal() local
347 if (get_signal(&ksig)) { in do_signal()
348 handle_signal(&ksig, regs); in do_signal()