Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/process/
Dfork.rs28 let r = RefCount::convert_mut(unsafe { &mut (*(current_pcb().sighand)).count }).unwrap(); in process_copy_sighand()
40 (*pcb).sighand = sig as *mut sighand_struct as usize in process_copy_sighand()
49 spin_lock_irqsave(unsafe { &mut (*current_pcb().sighand).siglock }, &mut flags); in process_copy_sighand()
52 for (index, x) in unsafe { (*current_pcb().sighand).action } in process_copy_sighand()
67 spin_unlock_irqrestore(unsafe { &mut (*current_pcb().sighand).siglock }, flags); in process_copy_sighand()
114 let sighand = Box::from_raw((*pcb).sighand as *mut sighand_struct); in process_exit_signal() localVariable
116 drop(sighand); in process_exit_signal()
117 (*pcb).sighand = 0 as *mut crate::include::bindings::bindings::sighand_struct; in process_exit_signal()
Dinitial_proc.rs34 (*pcb).sighand = &mut INITIAL_SIGHAND as *mut sighand_struct as usize in initial_proc_init_signal()
Dproc-types.h127 struct sighand_struct *sighand; member
Dprocess.c61 ….signal = &INITIAL_SIGNALS, .sighand = &INITIAL_SIGHAND, .address_space = NULL …
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs160 let sighand_ptr = sighand_struct::convert_mut(unsafe { &mut *pcb.sighand }); in lock_process_sighand()
170 let ret = unsafe { ((*pcb).sighand as *mut sighand_struct).as_mut() }; in lock_process_sighand()
179 let lock = unsafe { &mut (*pcb.sighand).siglock }; in unlock_process_sighand()
227 assert!(spin_is_locked(unsafe { &(*pcb.sighand).siglock })); in __send_signal_locked()
341 sighand_struct::convert_ref(pcb.sighand).unwrap().action[(sig as usize) - 1] in sig_fatal()
378 assert!(spin_is_locked(&unsafe { (*pcb.sighand).siglock })); in signal_wake_up_state()
436 let sighand: &mut sighand_struct; in get_signal_to_deliver() localVariable
439 let _tmp = sighand_struct::convert_mut(current_pcb().sighand); in get_signal_to_deliver()
441 sighand = i; in get_signal_to_deliver()
447 spin_lock_irq(&mut sighand.siglock); in get_signal_to_deliver()
[all …]
/DragonOS-0.1.8/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问题