Lines Matching refs:sig
66 let sig: SignalNumber = SignalNumber::from(regs.r9 as i32); in sys_kill() localVariable
68 if sig == SignalNumber::INVALID { in sys_kill()
78 si_signo: sig as i32, in sys_kill()
90 let retval = signal_kill_something_info(sig, Some(&mut info), pid); in sys_kill()
107 sig: SignalNumber, in signal_kill_something_info()
118 return signal_kill_proc_info(sig, info, pid); in signal_kill_something_info()
122 sig: SignalNumber, in signal_kill_proc_info()
141 retval = signal_send_sig_info(sig, info, pcb.unwrap()); in signal_kill_proc_info()
149 fn verify_signal(sig: SignalNumber) -> bool { in verify_signal()
150 return if (sig as i32) <= MAX_SIG_NUM { in verify_signal()
162 sig: SignalNumber, in signal_send_sig_info()
168 if !verify_signal(sig) { in signal_send_sig_info()
180 retval = send_signal_locked(sig, info, target_pcb, PidType::PID); in signal_send_sig_info()
228 sig: SignalNumber, in send_signal_locked()
245 return __send_signal_locked(sig, info, pcb, pt, force_send); in send_signal_locked()
257 sig: SignalNumber, in __send_signal_locked()
271 if sig == SignalNumber::SIGKILL || (pcb.flags & (PF_KTHREAD as u64)) != 0 { in __send_signal_locked()
272 complete_signal(sig, pcb, pt); in __send_signal_locked()
283 q = siginfo::new(sig, 0, si_code_val::SI_USER); in __send_signal_locked()
290 complete_signal(sig, pcb, pt); in __send_signal_locked()
301 fn complete_signal(sig: SignalNumber, pcb: &mut process_control_block, pt: PidType) { in complete_signal()
308 sig, in complete_signal()
320 if wants_signal(sig, pcb) { in complete_signal()
341 signal_wake_up(pcb, sig == SignalNumber::SIGKILL); in complete_signal()
349 fn wants_signal(sig: SignalNumber, pcb: &process_control_block) -> bool { in wants_signal()
351 if sig_is_member(sigset_t::convert_ref(&pcb.sig_blocked).unwrap(), sig) { in wants_signal()
360 if sig == SignalNumber::SIGKILL { in wants_signal()
378 fn sig_fatal(pcb: &process_control_block, sig: SignalNumber) -> bool { in sig_fatal()
380 sighand_struct::convert_ref(pcb.sighand).unwrap().action[(sig as usize) - 1] in sig_fatal()
533 let sig = next_signal( in dequeue_signal() localVariable
539 if sig != SignalNumber::INVALID { in dequeue_signal()
542 sig, in dequeue_signal()
551 return (sig, info); in dequeue_signal()
560 let mut sig = SignalNumber::INVALID; in next_signal() localVariable
568 sig = SignalNumber::from(ffz(!x) + 1); in next_signal()
569 return sig; in next_signal()
575 return sig; in next_signal()
588 fn collect_signal(sig: SignalNumber, pending: &mut sigpending) -> siginfo { in collect_signal()
591 .find_and_delete(sig); in collect_signal()
595 sigset_del(&mut pending.signal, sig); in collect_signal()
602 let mut ret = siginfo::new(sig, 0, si_code_val::SI_USER); in collect_signal()
618 sig: SignalNumber, in handle_signal()
625 let retval = setup_frame(sig, ka, info, oldset, regs); in handle_signal()
636 sig: SignalNumber, in setup_frame()
655 (*frame).arg0 = sig as u64; in setup_frame()
677 sig as i32 in setup_frame()
686 regs.rdi = sig as u64; in setup_frame()
696 if sig == SignalNumber::SIGSEGV { in setup_frame()
863 let sig = SignalNumber::from(regs.r8 as i32); in sys_sigaction() localVariable
865 if sig == SignalNumber::INVALID { in sys_sigaction()
870 sig, in sys_sigaction()
912 sig: SignalNumber, in do_sigaction()
920 sigaction::convert_mut(unsafe { &mut (*(pcb.sighand)).action[(sig as usize) - 1] }) in do_sigaction()
975 if action.ignored(sig) { in do_sigaction()
978 sigset_add(&mut mask, sig); in do_sigaction()
991 pub fn sigmask(sig: SignalNumber) -> u64 { in sigmask()
993 return 1u64 << ((sig as i32) - 1); in sigmask()