Lines Matching refs:sig

66     let sig: SignalNumber = SignalNumber::from(regs.r9 as i32);  in sys_kill()  localVariable
67 if sig == SignalNumber::INVALID { in sys_kill()
77 si_signo: sig as i32, in sys_kill()
89 let retval = signal_kill_something_info(sig, Some(&mut info), pid) as u64; in sys_kill()
99 fn signal_kill_something_info(sig: SignalNumber, info: Option<&mut siginfo>, pid: pid_t) -> i32 { in signal_kill_something_info()
107 return signal_kill_proc_info(sig, info, pid); in signal_kill_something_info()
110 fn signal_kill_proc_info(sig: SignalNumber, info: Option<&mut siginfo>, pid: pid_t) -> i32 { in signal_kill_proc_info()
126 retval = signal_send_sig_info(sig, info, pcb.unwrap()); in signal_kill_proc_info()
134 fn verify_signal(sig: SignalNumber) -> bool { in verify_signal()
135 return if (sig as i32) <= MAX_SIG_NUM { in verify_signal()
147 sig: SignalNumber, in signal_send_sig_info()
153 if !verify_signal(sig) { in signal_send_sig_info()
165 retval = send_signal_locked(sig, info, target_pcb, PidType::PID); in signal_send_sig_info()
213 sig: SignalNumber, in send_signal_locked()
230 return __send_signal_locked(sig, info, pcb, pt, force_send); in send_signal_locked()
242 sig: SignalNumber, in __send_signal_locked()
257 if sig == SignalNumber::SIGKILL || (pcb.flags & (PF_KTHREAD as u64)) != 0 { in __send_signal_locked()
258 complete_signal(sig, pcb, pt); in __send_signal_locked()
272 fn complete_signal(sig: SignalNumber, pcb: &mut process_control_block, pt: PidType) { in complete_signal()
279 sig, in complete_signal()
291 if wants_signal(sig, pcb) { in complete_signal()
312 signal_wake_up(pcb, sig == SignalNumber::SIGKILL); in complete_signal()
320 fn wants_signal(sig: SignalNumber, pcb: &process_control_block) -> bool { in wants_signal()
322 if sig_is_member(sigset_t::convert_ref(&pcb.sig_blocked).unwrap(), sig) { in wants_signal()
331 if sig == SignalNumber::SIGKILL { in wants_signal()
349 fn sig_fatal(pcb: &process_control_block, sig: SignalNumber) -> bool { in sig_fatal()
351 sighand_struct::convert_ref(pcb.sighand).unwrap().action[(sig as usize) - 1] in sig_fatal()
505 let sig = next_signal( in dequeue_signal() localVariable
511 if sig != SignalNumber::INVALID { in dequeue_signal()
514 sig, in dequeue_signal()
523 return (sig, info); in dequeue_signal()
532 let mut sig = SignalNumber::INVALID; in next_signal() localVariable
540 sig = SignalNumber::from(ffz(!x) + 1); in next_signal()
541 return sig; in next_signal()
547 return sig; in next_signal()
560 fn collect_signal(sig: SignalNumber, pending: &mut sigpending) -> siginfo { in collect_signal()
563 .find_and_delete(sig); in collect_signal()
567 sigset_del(&mut pending.signal, sig); in collect_signal()
574 let mut ret = siginfo::new(sig, 0, si_code_val::SI_USER); in collect_signal()
590 sig: SignalNumber, in handle_signal()
597 let retval = setup_frame(sig, ka, info, oldset, regs); in handle_signal()
608 sig: SignalNumber, in setup_frame()
627 (*frame).arg0 = sig as u64; in setup_frame()
649 sig as i32 in setup_frame()
658 regs.rdi = sig as u64; in setup_frame()
668 if sig == SignalNumber::SIGSEGV { in setup_frame()
834 let sig = SignalNumber::from(regs.r8 as i32); in sys_sigaction() localVariable
836 if sig == SignalNumber::INVALID { in sys_sigaction()
841 sig, in sys_sigaction()
882 sig: SignalNumber, in do_sigaction()
890 sigaction::convert_mut(unsafe { &mut (*(pcb.sighand)).action[(sig as usize) - 1] }) in do_sigaction()
945 if action.ignored(sig) { in do_sigaction()
948 sigset_add(&mut mask, sig); in do_sigaction()
962 pub fn sigmask(sig: SignalNumber) -> u64 { in sigmask()
964 return 1u64 << ((sig as i32) - 1); in sigmask()