Lines Matching refs:ka
448 let (sig_number, info, ka) = get_signal_to_deliver(regs.clone()); in do_signal()
458 let res = handle_signal(sig_number, ka.unwrap(), &info.unwrap(), &oldset, regs); in do_signal()
479 let ka: Option<&mut sigaction>; in get_signal_to_deliver() localVariable
513 ka = Some(tmp_ka); in get_signal_to_deliver()
531 return (sig_number, info, ka); in get_signal_to_deliver()
625 ka: &mut sigaction, in handle_signal()
631 let retval = setup_frame(sig, ka, info, oldset, regs); in handle_signal()
643 ka: &mut sigaction, in setup_frame()
649 let frame: *mut sigframe = get_stack(ka, ®s, size_of::<sigframe>()); in setup_frame()
664 (*frame).handler = ka._u._sa_handler as usize as *mut c_void; in setup_frame()
686 if ka.sa_flags & SA_FLAG_RESTORER != 0 { in setup_frame()
688 (*frame).ret_code_ptr = ka.sa_restorer as usize as *mut c_void; in setup_frame()
709 regs.rip = unsafe { ka._u._sa_handler }; in setup_frame()
717 ka.sa_flags |= SA_FLAG_DFL; in setup_frame()
816 for ka in action.iter_mut() { in flush_signal_handlers()
817 if force_default || (ka.sa_flags != SA_FLAG_IGN) { in flush_signal_handlers()
818 ka.sa_flags = SA_FLAG_DFL; in flush_signal_handlers()
819 ka._u._sa_handler = None; in flush_signal_handlers()
822 ka.sa_flags &= SA_FLAG_DFL | SA_FLAG_IGN; in flush_signal_handlers()
823 ka.sa_restorer = None; in flush_signal_handlers()
824 sigset_clear(&mut ka.sa_mask); in flush_signal_handlers()