/DragonOS-0.1.5/user/libs/libc/src/ |
D | signal.c | 52 int raise(int sig) in raise() argument 54 return kill(getpid(), sig); in raise() 64 int kill(pid_t pid, int sig) in kill() argument 66 syscall_invoke(SYS_KILL, pid, sig, 0, 0, 0, 0, 0, 0); in kill()
|
/DragonOS-0.1.5/kernel/src/ipc/ |
D | signal.rs | 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() [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() 566 pub fn sigset_del(set: &mut sigset_t, sig: SignalNumber) { in sigset_del() 567 let sig = sig as i32 - 1; in sigset_del() localVariable 569 *set &= !(1 << sig); in sigset_del() [all …]
|
/DragonOS-0.1.5/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.5/user/apps/test_signal/ |
D | main.c | 29 void handler(int sig) in handler() argument 31 printf("handle %d\n", sig); in handler()
|
/DragonOS-0.1.5/user/libs/libc/src/include/export/ |
D | signal.h | 97 int raise(int sig); 98 int kill(pid_t, int sig);
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | hba.rs | 55 pub sig: u32, // 0x24, signature field 132 let sig = volatile_read!(self.sig); in check_type() localVariable 133 match sig { in check_type() 138 _ => HbaPortType::Unknown(sig), in check_type()
|
D | ahci.h | 220 uint32_t sig; // 0x24, signature member
|
/DragonOS-0.1.5/docs/kernel/ipc/ |
D | signal.md | 64 │ sig handler │ └────────────┘ │ frame. │
|
/DragonOS-0.1.5/kernel/src/include/DragonOS/ |
D | signal.h | 104 void (*_sa_sigaction)(int sig, struct siginfo *sinfo, void *);
|