Home
last modified time | relevance | path

Searched refs:sighand (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.2/kernel/src/process/
Dfork.rs27 let r = RefCount::convert_mut(unsafe { &mut (*(current_pcb().sighand)).count }).unwrap(); in process_copy_sighand()
39 (*pcb).sighand = sig as *mut sighand_struct as usize in process_copy_sighand()
48 spin_lock_irqsave(unsafe { &mut (*current_pcb().sighand).siglock }, &mut flags); in process_copy_sighand()
51 for (index, x) in unsafe { (*current_pcb().sighand).action } in process_copy_sighand()
66 spin_unlock_irqrestore(unsafe { &mut (*current_pcb().sighand).siglock }, &flags); in process_copy_sighand()
113 let sighand = Box::from_raw((*pcb).sighand as *mut sighand_struct); in process_exit_signal() localVariable
115 drop(sighand); in process_exit_signal()
116 (*pcb).sighand = 0 as *mut crate::include::bindings::bindings::sighand_struct; in process_exit_signal()
Dinitial_proc.rs35 (*pcb).sighand = &mut INITIAL_SIGHAND as *mut sighand_struct as usize in initial_proc_init_signal()
Dproc-types.h126 struct sighand_struct *sighand; member
Dprocess.c61 ….signal = &INITIAL_SIGNALS, .sighand = &INITIAL_SIGHAND, …
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs184 let sighand_ptr = sighand_struct::convert_mut(unsafe { &mut *pcb.sighand }); in lock_process_sighand()
194 let ret = unsafe { ((*pcb).sighand as *mut sighand_struct).as_mut() }; in lock_process_sighand()
203 let lock = unsafe { &mut (*pcb.sighand).siglock }; in unlock_process_sighand()
252 assert!(spin_is_locked(unsafe { &(*pcb.sighand).siglock })); in __send_signal_locked()
351 sighand_struct::convert_ref(pcb.sighand).unwrap().action[(sig as usize) - 1] in sig_fatal()
388 assert!(spin_is_locked(&unsafe { (*pcb.sighand).siglock })); in signal_wake_up_state()
447 let sighand: &mut sighand_struct; in get_signal_to_deliver() localVariable
450 let _tmp = sighand_struct::convert_mut(current_pcb().sighand); in get_signal_to_deliver()
452 sighand = i; in get_signal_to_deliver()
458 spin_lock_irq(&mut sighand.siglock); in get_signal_to_deliver()
[all …]
/DragonOS-0.1.2/docs/community/ChangeLog/V0.1.x/
DV0.1.1.md173 bugfix: 修复进程退出时未释放signal和sighand && 增加赞赏者名单:David Wen (#93)
175 * bugfix: 修复进程退出时未释放signal和sighand的bug
185 * fix: exit signal and exit sighand
191 new:在fork时拷贝signal和sighand (#91)
199 bugfix: 解决拷贝sighand时的uaf问题