Searched refs:ns (Results 1 – 8 of 8) sorted by relevance
/DragonOS/kernel/src/namespaces/ |
H A D | pid_namespace.rs | 69 pub ns: Arc<PidNamespace>, field 78 ns: Arc::new(PidNamespace::new()), in new() 85 let ns = pid.numbers[pid.level].ns.clone(); in put_pid() localVariable 87 ns.id_alloctor.write().free(id); in put_pid() 89 pub fn alloc_pid(ns: Arc<PidNamespace>, set_tid: Vec<usize>) -> Result<PidStrcut, SystemError> { in alloc_pid() 91 if set_tid_size > ns.level + 1 { in alloc_pid() 95 let mut numbers = Vec::<UPid>::with_capacity(ns.level + 1); in alloc_pid() 97 let mut pid_ns = ns.clone(); // 当前正在处理的命名空间 in alloc_pid() 98 for i in (0..=ns.level).rev() { in alloc_pid() 120 ns: pid_ns.clone(), in alloc_pid() [all …]
|
H A D | ucount.rs | 41 ns: Arc<UserNamespace>, field 57 ns: Arc::new(UserNamespace::new()), in new() 69 fn alloc_ucounts(&self, ns: Arc<UserNamespace>, uid: usize) -> Arc<Self> { in alloc_ucounts() 72 user_ns: ns.clone(), in alloc_ucounts() 81 ns, in alloc_ucounts() 110 if num > iter.ns.ucount_max[uc_type] { in inc_ucounts() 116 uc_iter = iter.ns.ucounts.clone(); in inc_ucounts() 130 user_ns: uc.ns.clone(), in get_ucounts() 144 uc_iter = iter.ns.ucounts.clone(); in dec_ucount() 152 user_ns: uc.ns.clone(), in put_ucounts()
|
H A D | namespace.rs | 96 let ns = pcb.get_nsproxy(); in switch_task_namespace() localVariable
|
/DragonOS/kernel/src/arch/x86_64/ |
H A D | time.rs | 20 fn cal_expire_cycles(ns: usize) -> usize { in cal_expire_cycles() 21 Self::get_cycles() + ns * TSCManager::cpu_khz() as usize / 1000000 in cal_expire_cycles()
|
/DragonOS/kernel/src/arch/riscv64/ |
H A D | time.rs | 56 fn cal_expire_cycles(ns: usize) -> usize { in cal_expire_cycles() 57 Self::get_cycles() + ns * unsafe { TIME_FREQ } / 1000000000 in cal_expire_cycles()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.0.md | 206 - SYS_NANOSLEEP 纳秒级睡眠(最长1秒)在小于500ns时,能够进行高精度睡眠
|
/DragonOS/kernel/src/time/ |
H A D | mod.rs | 518 fn cal_expire_cycles(ns: usize) -> usize; in cal_expire_cycles()
|
H A D | clocksource.rs | 373 let ns = self.clocksource_max_deferment(); in clocksource_update_freq_scale() localVariable 374 cs_data.set_max_idle_ns(ns as u32); in clocksource_update_freq_scale()
|