Lines Matching refs:sig

68     sig: SignalNumber,  in signal_kill_something_info()
79 return signal_kill_proc_info(sig, info, pid); in signal_kill_something_info()
83 sig: SignalNumber, in signal_kill_proc_info()
102 retval = signal_send_sig_info(sig, info, pcb.unwrap()); in signal_kill_proc_info()
110 fn verify_signal(sig: SignalNumber) -> bool { in verify_signal()
111 return if (sig as i32) <= MAX_SIG_NUM { in verify_signal()
123 sig: SignalNumber, in signal_send_sig_info()
129 if !verify_signal(sig) { in signal_send_sig_info()
141 retval = send_signal_locked(sig, info, target_pcb, PidType::PID); in signal_send_sig_info()
189 sig: SignalNumber, in send_signal_locked()
206 return __send_signal_locked(sig, info, pcb, pt, force_send); in send_signal_locked()
218 sig: SignalNumber, in __send_signal_locked()
232 if sig == SignalNumber::SIGKILL || (pcb.flags & (PF_KTHREAD as u64)) != 0 { in __send_signal_locked()
233 complete_signal(sig, pcb, pt); in __send_signal_locked()
244 q = siginfo::new(sig, 0, si_code_val::SI_USER); in __send_signal_locked()
251 complete_signal(sig, pcb, pt); in __send_signal_locked()
262 fn complete_signal(sig: SignalNumber, pcb: &mut process_control_block, pt: PidType) { in complete_signal()
269 sig, in complete_signal()
281 if wants_signal(sig, pcb) { in complete_signal()
302 signal_wake_up(pcb, sig == SignalNumber::SIGKILL); in complete_signal()
310 fn wants_signal(sig: SignalNumber, pcb: &process_control_block) -> bool { in wants_signal()
312 if sig_is_member(sigset_t::convert_ref(&pcb.sig_blocked).unwrap(), sig) { in wants_signal()
321 if sig == SignalNumber::SIGKILL { in wants_signal()
339 fn sig_fatal(pcb: &process_control_block, sig: SignalNumber) -> bool { in sig_fatal()
341 sighand_struct::convert_ref(pcb.sighand).unwrap().action[(sig as usize) - 1] in sig_fatal()
494 let sig = next_signal( in dequeue_signal() localVariable
500 if sig != SignalNumber::INVALID { in dequeue_signal()
503 sig, in dequeue_signal()
512 return (sig, info); in dequeue_signal()
521 let mut sig = SignalNumber::INVALID; in next_signal() localVariable
529 sig = SignalNumber::from(ffz(!x) + 1); in next_signal()
530 return sig; in next_signal()
536 return sig; in next_signal()
549 fn collect_signal(sig: SignalNumber, pending: &mut sigpending) -> siginfo { in collect_signal()
552 .find_and_delete(sig); in collect_signal()
556 sigset_del(&mut pending.signal, sig); in collect_signal()
563 let mut ret = siginfo::new(sig, 0, si_code_val::SI_USER); in collect_signal()
579 sig: SignalNumber, in handle_signal()
586 let retval = setup_frame(sig, ka, info, oldset, regs); in handle_signal()
597 sig: SignalNumber, in setup_frame()
616 (*frame).arg0 = sig as u64; in setup_frame()
649 sig as i32 in setup_frame()
661 regs.rdi = sig as u64; in setup_frame()
671 if sig == SignalNumber::SIGSEGV { in setup_frame()
786 sig: SignalNumber, in do_sigaction()
794 sigaction::convert_mut(unsafe { &mut (*(pcb.sighand)).action[(sig as usize) - 1] }) in do_sigaction()
849 if action.ignored(sig) { in do_sigaction()
852 sigset_add(&mut mask, sig); in do_sigaction()
865 pub fn sigmask(sig: SignalNumber) -> u64 { in sigmask()
867 return 1u64 << ((sig as i32) - 1); in sigmask()