/DragonOS-0.1.8/kernel/src/ipc/ |
D | signal.rs | 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() [all …]
|
D | syscall.rs | 44 pub fn kill(pid: pid_t, sig: c_int) -> Result<usize, SystemError> { in kill() 45 let sig = SignalNumber::from(sig); in kill() localVariable 46 if sig == SignalNumber::INVALID { in kill() 56 si_signo: sig as i32, in kill() 68 let retval = signal_kill_something_info(sig, Some(&mut info), pid).map(|x| x as usize); in kill() 84 sig: c_int, in sigaction() 146 sig in sigaction() 152 let sig = SignalNumber::from(sig as i32); in sigaction() localVariable 154 if sig == SignalNumber::INVALID { in sigaction() 159 sig, in sigaction()
|
D | signal_types.rs | 64 sig: ::core::ffi::c_int, 194 pub fn new(sig: SignalNumber, _si_errno: i32, _si_code: si_code_val) -> Self { in new() 198 si_signo: sig as i32, in new() 483 pub fn find(&self, sig: SignalNumber) -> (Option<&siginfo>, bool) { in find() 489 if unsafe { x._sinfo.data.si_signo } == sig as i32 { in find() 504 pub fn find_and_delete(&mut self, sig: SignalNumber) -> (Option<siginfo>, bool) { in find_and_delete() 510 if unsafe { x._sinfo.data.si_signo } == sig as i32 { in find_and_delete() 567 pub fn sigset_del(set: &mut sigset_t, sig: SignalNumber) { in sigset_del() 568 let sig = sig as i32 - 1; in sigset_del() localVariable 570 *set &= !(1 << sig); in sigset_del() [all …]
|
/DragonOS-0.1.8/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.8/kernel/src/process/ |
D | fork.rs | 33 let mut sig: &mut sighand_struct = Box::leak(Box::new(sighand_struct::default())); in process_copy_sighand() localVariable 34 if (sig as *mut sighand_struct) == null_mut() { in process_copy_sighand() 40 (*pcb).sighand = sig as *mut sighand_struct as usize in process_copy_sighand() 58 sig.action[index] = in process_copy_sighand() 62 sig.action[index] = DEFAULT_SIGACTION; in process_copy_sighand() 89 let sig: &mut signal_struct = Box::leak(Box::new(signal_struct::default())); in process_copy_signal() localVariable 90 if (sig as *mut signal_struct) == null_mut() { in process_copy_signal() 93 atomic_set(&mut sig.sig_cnt, 1); in process_copy_signal() 96 (*pcb).signal = sig as *mut signal_struct as usize in process_copy_signal() 129 let sig = Box::from_raw((*pcb).signal as *mut signal_struct); in process_exit_sighand() localVariable [all …]
|
/DragonOS-0.1.8/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.8/user/libs/libc/src/include/export/ |
D | signal.h | 97 int raise(int sig); 98 int kill(pid_t, int sig);
|
/DragonOS-0.1.8/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.8/docs/kernel/ipc/ |
D | signal.md | 64 │ sig handler │ └────────────┘ │ frame. │
|
/DragonOS-0.1.8/kernel/src/include/DragonOS/ |
D | signal.h | 104 void (*_sa_sigaction)(int sig, struct siginfo *sinfo, void *);
|
/DragonOS-0.1.8/kernel/src/syscall/ |
D | mod.rs | 698 let sig = args[1] as c_int; in handle() localVariable 700 Self::kill(pid, sig) in handle() 704 let sig = args[0] as c_int; in handle() localVariable 707 Self::sigaction(sig, act, old_act, from_user) in handle()
|