/DragonOS-0.1.9/kernel/src/arch/riscv64/process/ |
D | kthread.rs | 7 Pid, 19 ) -> Result<Pid, SystemError> { in __inner_create() argument
|
/DragonOS-0.1.9/kernel/src/debug/klog/ |
D | mm.rs | 9 process::{Pid, ProcessManager}, 33 Some(Pid::new(0)) in mm_debug_log() 54 pub fn log(log_type: AllocatorLogType, source: LogSource, pid: Option<Pid>) { in log() argument
|
/DragonOS-0.1.9/kernel/src/process/ |
D | mod.rs | 73 static ALL_PROCESS: SpinLock<Option<HashMap<Pid, Arc<ProcessControlBlock>>>> = SpinLock::new(None); 148 pub fn current_pid() -> Pid { in current_pid() 150 return Pid(0); in current_pid() 181 pub fn find(pid: Pid) -> Option<Arc<ProcessControlBlock>> { in find() 308 if current.pid() != Pid(1) { in exit_notify() 374 pub unsafe fn release(pid: Pid) { in release() argument 451 int_like!(Pid, AtomicPid, usize, AtomicUsize); 453 impl Pid { impl 542 pid: Pid, 544 tgid: Pid, [all …]
|
D | syscall.rs | 15 KernelStack, Pid, ProcessManager, 146 pub fn getpid() -> Result<Pid, SystemError> { in getpid() 157 pub fn getpgid(mut pid: Pid) -> Result<Pid, SystemError> { in getpgid() argument 158 if pid == Pid(0) { in getpgid() 168 pub fn getppid() -> Result<Pid, SystemError> { in getppid() 241 pub fn gettid() -> Result<Pid, SystemError> { in gettid() 295 _pid: Pid, in prlimit64() argument
|
D | process.rs | 8 process::{Pid, ProcessManager}, 29 if ProcessManager::current_pcb().pid() != Pid(1) { in stdio_init()
|
D | exit.rs | 17 abi::WaitOption, pid::PidType, resource::RUsage, Pid, ProcessControlBlock, ProcessManager, 25 pub pid: Pid, 35 pub pid: Pid, 41 pub fn new(pid_type: PidType, pid: Pid, options: WaitOption) -> Self { in new() argument 82 let pid = Pid(pid as usize); in kernel_wait4()
|
D | kthread.rs | 24 use super::{fork::CloneFlags, Pid, ProcessControlBlock, ProcessFlags}; 258 assert!(ProcessManager::current_pcb().pid() == Pid::new(0)); in init_stage1() 304 let kthreadd_pid: Pid = Self::__inner_create( in init_stage2() 458 let result: Result<Pid, SystemError> = Self::__inner_create( in kthread_daemon()
|
D | fork.rs | 18 KernelStack, Pid, ProcessControlBlock, ProcessManager, 156 ) -> Result<Pid, SystemError> { in fork() argument
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/process/ |
D | kthread.rs | 14 Pid, ProcessManager, 27 ) -> Result<Pid, SystemError> { in __inner_create() argument
|
/DragonOS-0.1.9/kernel/src/sched/ |
D | core.rs | 11 process::{AtomicPid, Pid, ProcessControlBlock, ProcessFlags, ProcessManager, ProcessState}, 35 data.push(AtomicPid::new(Pid::new(0))); in new() 41 pub fn set(&self, cpu_id: ProcessorId, pid: Pid) { in set() argument 46 pub fn get(&self, cpu_id: ProcessorId) -> Pid { in get() argument
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | tty_job_control.rs | 7 process::{Pid, ProcessManager}, 104 ctrl.pgid = Some(Pid::new(arg)); in job_ctrl_ioctl() 128 .unwrap_or(Pid::new(0)) in job_ctrl_ioctl()
|
D | tty_core.rs | 18 process::Pid, 251 pub session: Option<Pid>, 253 pub pgid: Option<Pid>,
|
/DragonOS-0.1.9/kernel/src/filesystem/procfs/ |
D | mod.rs | 26 process::{Pid, ProcessManager}, 71 pid: Pid, 313 pid: Pid::new(0), in new() 340 meminfo_file.0.lock().fdata.pid = Pid::new(0); in new() 353 kmsg_file.0.lock().fdata.pid = Pid::new(1); in new() 364 pub fn register_pid(&self, pid: Pid) -> Result<(), SystemError> { in register_pid() 394 pub fn unregister_pid(&self, pid: Pid) -> Result<(), SystemError> { in unregister_pid() 588 pid: Pid::new(0), in create_with_data() 743 pub fn procfs_register_pid(pid: Pid) -> Result<(), SystemError> { in procfs_register_pid() 759 pub fn procfs_unregister_pid(pid: Pid) -> Result<(), SystemError> { in procfs_unregister_pid()
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | mutex.rs | 13 process::{Pid, ProcessControlBlock, ProcessManager}, 135 fn check_pid_in_wait_list(&self, inner: &MutexInner, pid: Pid) -> bool { in check_pid_in_wait_list()
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | signal_types.rs | 18 process::Pid, 335 Kill(Pid), 432 let mut ret = SigInfo::new(sig, 0, SigCode::User, SigType::Kill(Pid::from(0))); in collect_signal() 433 ret.set_sig_type(SigType::Kill(Pid::new(0))); in collect_signal()
|
D | signal.rs | 11 process::{pid::PidType, Pid, ProcessControlBlock, ProcessFlags, ProcessManager}, 29 pid: Pid, in send_signal_info() argument 37 if pid.lt(&Pid::from(0)) { in send_signal_info()
|
D | syscall.rs | 16 process::{Pid, ProcessManager}, 78 pub fn kill(pid: Pid, sig: c_int) -> Result<usize, SystemError> { in kill() argument
|
/DragonOS-0.1.9/kernel/src/syscall/ |
D | mod.rs | 37 process::{fork::CloneFlags, Pid}, 420 let pid = Pid::new(args[0]); in handle() 666 SYS_GETPGID => Self::getpgid(Pid::new(args[0])).map(|pid| pid.into()), in handle() 940 let pid = Pid::new(pid); in handle()
|
/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/ |
D | virtual_console.rs | 15 process::Pid, 92 pub pid: Option<Pid>,
|