Searched refs:sig (Results 1 – 7 of 7) sorted by relevance
/DragonOS-0.1.2/kernel/src/ipc/ |
D | signal.rs | 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() [all …]
|
D | signal_types.rs | 63 sig: ::core::ffi::c_int, 193 pub fn new(sig: SignalNumber, _si_errno: i32, _si_code: si_code_val) -> Self { in new() 197 si_signo: sig as i32, in new() 482 pub fn find(&self, sig: SignalNumber) -> (Option<&siginfo>, bool) { in find() 488 if unsafe { x._sinfo.data.si_signo } == sig as i32 { in find() 503 pub fn find_and_delete(&mut self, sig: SignalNumber) -> (Option<siginfo>, bool) { in find_and_delete() 509 if unsafe { x._sinfo.data.si_signo } == sig as i32 { in find_and_delete() 559 pub fn sigset_del(set: &mut sigset_t, sig: SignalNumber) { in sigset_del() 560 let sig = sig as i32 - 1; in sigset_del() localVariable 562 *set &= !(1 << sig); in sigset_del() [all …]
|
/DragonOS-0.1.2/kernel/src/process/ |
D | fork.rs | 32 let mut sig: &mut sighand_struct = Box::leak(Box::new(sighand_struct::default())); in process_copy_sighand() localVariable 33 if (sig as *mut sighand_struct) == null_mut() { in process_copy_sighand() 39 (*pcb).sighand = sig as *mut sighand_struct as usize in process_copy_sighand() 57 sig.action[index] = in process_copy_sighand() 61 sig.action[index] = DEFAULT_SIGACTION; in process_copy_sighand() 88 let sig: &mut signal_struct = Box::leak(Box::new(signal_struct::default())); in process_copy_signal() localVariable 89 if (sig as *mut signal_struct) == null_mut() { in process_copy_signal() 92 atomic_set(&mut sig.sig_cnt, 1); in process_copy_signal() 95 (*pcb).signal = sig as *mut signal_struct as usize in process_copy_signal() 128 let sig = Box::from_raw((*pcb).signal as *mut signal_struct); in process_exit_sighand() localVariable [all …]
|
/DragonOS-0.1.2/user/apps/test_signal/ |
D | main.c | 30 void handler(int sig) in handler() argument 32 printf("handle %d\n", sig); in handler()
|
/DragonOS-0.1.2/kernel/src/include/DragonOS/ |
D | signal.h | 104 void (*_sa_sigaction)(int sig, struct siginfo *sinfo, void *);
|
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/ |
D | ahci.h | 220 uint32_t sig; // 0x24, signature member
|
D | ahci.c | 200 switch (port->sig) in check_type()
|