Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.7/kernel/src/ipc/
Dsignal.rs72 let sig: SignalNumber = SignalNumber::from(regs.r9 as i32); in sys_kill() localVariable
74 if sig == SignalNumber::INVALID { in sys_kill()
84 si_signo: sig as i32, in sys_kill()
96 let retval = signal_kill_something_info(sig, Some(&mut info), pid); in sys_kill()
113 sig: SignalNumber, in signal_kill_something_info()
124 return signal_kill_proc_info(sig, info, pid); in signal_kill_something_info()
128 sig: SignalNumber, in signal_kill_proc_info()
147 retval = signal_send_sig_info(sig, info, pcb.unwrap()); in signal_kill_proc_info()
155 fn verify_signal(sig: SignalNumber) -> bool { in verify_signal()
156 return if (sig as i32) <= MAX_SIG_NUM { in verify_signal()
[all …]
Dsignal_types.rs64 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.7/user/libs/libc/src/
Dsignal.c52 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.7/kernel/src/process/
Dfork.rs33 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.7/user/apps/test_signal/
Dmain.c29 void handler(int sig) in handler() argument
31 printf("handle %d\n", sig); in handler()
/DragonOS-0.1.7/user/libs/libc/src/include/export/
Dsignal.h97 int raise(int sig);
98 int kill(pid_t, int sig);
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dhba.rs55 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()
Dahci.h220 uint32_t sig; // 0x24, signature member
/DragonOS-0.1.7/docs/kernel/ipc/
Dsignal.md64sig handler │ └────────────┘ │ frame. │
/DragonOS-0.1.7/kernel/src/include/DragonOS/
Dsignal.h104 void (*_sa_sigaction)(int sig, struct siginfo *sinfo, void *);