/DragonOS/kernel/src/libs/ |
H A D | lazy_init.rs | 28 pub struct Lazy<T> { struct 37 impl<T> Lazy<T> { impl 40 pub const fn new() -> Lazy<T> { in new() 41 Lazy { in new() 120 impl<T> Deref for Lazy<T> { implementation 129 impl<T> DerefMut for Lazy<T> { implementation 136 impl<T: Debug> Debug for Lazy<T> { implementation 146 impl<T> Drop for Lazy<T> { implementation 156 unsafe impl<T: Send + Sync> Sync for Lazy<T> {} implementation 157 unsafe impl<T: Send> Send for Lazy<T> {} implementation
|
/DragonOS/kernel/src/mm/ |
H A D | percpu.rs | 6 libs::lazy_init::Lazy, 82 pub const fn define_lazy() -> Lazy<Self> { in define_lazy() 83 Lazy::<Self>::new() in define_lazy()
|
/DragonOS/kernel/src/arch/x86_64/init/pvh/ |
H A D | mod.rs | 18 libs::lazy_init::Lazy, 24 static START_INFO: Lazy<HvmStartInfo> = Lazy::new();
|
/DragonOS/kernel/src/init/ |
H A D | boot.rs | 10 libs::lazy_init::Lazy, 143 static BOOT_CALLBACKS: Lazy<&'static dyn BootCallbacks> = Lazy::new();
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | mod.rs | 15 libs::lazy_init::Lazy, 32 static PTM_DRIVER: Lazy<Arc<TtyDriver>> = Lazy::new(); 33 static PTS_DRIVER: Lazy<Arc<TtyDriver>> = Lazy::new();
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | multiboot2.rs | 21 libs::lazy_init::Lazy, 26 static MB2_INFO: Lazy<BootInformation> = Lazy::new();
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 28 use crate::libs::lazy_init::Lazy; 31 static CPU_DEVICE_MANAGER: Lazy<CpuDeviceManager> = Lazy::new();
|
/DragonOS/kernel/src/bpf/helper/ |
H A D | mod.rs | 7 use crate::libs::lazy_init::Lazy; 303 pub static BPF_HELPER_FUN_SET: Lazy<BTreeMap<u32, RawBPFHelperFn>> = Lazy::new();
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | mod.rs | 22 libs::{lazy_init::Lazy, rwlock::RwLock, spinlock::SpinLock}, 70 index: Lazy<usize>, 83 index: Lazy::new(), in new()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | file.rs | 14 use crate::libs::lazy_init::Lazy; 130 inode: Lazy<Weak<dyn IndexNode>>, 154 let v: Lazy<Weak<dyn IndexNode>> = Lazy::new(); in new()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_driver.rs | 29 lazy_init::Lazy, 139 self_ref: Lazy<Weak<Self>>, 177 self_ref: Lazy::new(), in new()
|
/DragonOS/kernel/crates/intertrait/src/ |
H A D | lib.rs | 104 static CASTER_MAP: once_cell::sync::Lazy<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> = 105 once_cell::sync::Lazy::new(|| {
|
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 30 lazy_init::Lazy, 50 static CPU_RUNQUEUE: Lazy<PerCpuVar<Arc<CpuRunQueue>>> = PerCpuVar::define_lazy();
|