Lines Matching refs:sig
72 let sig: SignalNumber = SignalNumber::from(regs.r9 as i32); in sys_kill() localVariable
74 if sig == SignalNumber::INVALID { in sys_kill()
84 si_signo: sig as i32, in sys_kill()
96 let retval = signal_kill_something_info(sig, Some(&mut info), pid); in sys_kill()
113 sig: SignalNumber, in signal_kill_something_info()
124 return signal_kill_proc_info(sig, info, pid); in signal_kill_something_info()
128 sig: SignalNumber, in signal_kill_proc_info()
147 retval = signal_send_sig_info(sig, info, pcb.unwrap()); in signal_kill_proc_info()
155 fn verify_signal(sig: SignalNumber) -> bool { in verify_signal()
156 return if (sig as i32) <= MAX_SIG_NUM { in verify_signal()
168 sig: SignalNumber, in signal_send_sig_info()
174 if !verify_signal(sig) { in signal_send_sig_info()
186 retval = send_signal_locked(sig, info, target_pcb, PidType::PID); in signal_send_sig_info()
234 sig: SignalNumber, in send_signal_locked()
251 return __send_signal_locked(sig, info, pcb, pt, force_send); in send_signal_locked()
263 sig: SignalNumber, in __send_signal_locked()
277 if sig == SignalNumber::SIGKILL || (pcb.flags & (PF_KTHREAD as u64)) != 0 { in __send_signal_locked()
278 complete_signal(sig, pcb, pt); in __send_signal_locked()
289 q = siginfo::new(sig, 0, si_code_val::SI_USER); in __send_signal_locked()
296 complete_signal(sig, pcb, pt); in __send_signal_locked()
307 fn complete_signal(sig: SignalNumber, pcb: &mut process_control_block, pt: PidType) { in complete_signal()
314 sig, in complete_signal()
326 if wants_signal(sig, pcb) { in complete_signal()
347 signal_wake_up(pcb, sig == SignalNumber::SIGKILL); in complete_signal()
355 fn wants_signal(sig: SignalNumber, pcb: &process_control_block) -> bool { in wants_signal()
357 if sig_is_member(sigset_t::convert_ref(&pcb.sig_blocked).unwrap(), sig) { in wants_signal()
366 if sig == SignalNumber::SIGKILL { in wants_signal()
384 fn sig_fatal(pcb: &process_control_block, sig: SignalNumber) -> bool { in sig_fatal()
386 sighand_struct::convert_ref(pcb.sighand).unwrap().action[(sig as usize) - 1] in sig_fatal()
539 let sig = next_signal( in dequeue_signal() localVariable
545 if sig != SignalNumber::INVALID { in dequeue_signal()
548 sig, in dequeue_signal()
557 return (sig, info); in dequeue_signal()
566 let mut sig = SignalNumber::INVALID; in next_signal() localVariable
574 sig = SignalNumber::from(ffz(!x) + 1); in next_signal()
575 return sig; in next_signal()
581 return sig; in next_signal()
594 fn collect_signal(sig: SignalNumber, pending: &mut sigpending) -> siginfo { in collect_signal()
597 .find_and_delete(sig); in collect_signal()
601 sigset_del(&mut pending.signal, sig); in collect_signal()
608 let mut ret = siginfo::new(sig, 0, si_code_val::SI_USER); in collect_signal()
624 sig: SignalNumber, in handle_signal()
631 let retval = setup_frame(sig, ka, info, oldset, regs); in handle_signal()
642 sig: SignalNumber, in setup_frame()
661 (*frame).arg0 = sig as u64; in setup_frame()
694 sig as i32 in setup_frame()
706 regs.rdi = sig as u64; in setup_frame()
716 if sig == SignalNumber::SIGSEGV { in setup_frame()
895 let sig = SignalNumber::from(regs.r8 as i32); in sys_sigaction() localVariable
897 if sig == SignalNumber::INVALID { in sys_sigaction()
902 sig, in sys_sigaction()
948 sig: SignalNumber, in do_sigaction()
956 sigaction::convert_mut(unsafe { &mut (*(pcb.sighand)).action[(sig as usize) - 1] }) in do_sigaction()
1011 if action.ignored(sig) { in do_sigaction()
1014 sigset_add(&mut mask, sig); in do_sigaction()
1027 pub fn sigmask(sig: SignalNumber) -> u64 { in sigmask()
1029 return 1u64 << ((sig as i32) - 1); in sigmask()