Home
last modified time | relevance | path

Searched refs:Lazy (Results 1 – 13 of 13) sorted by relevance

/DragonOS/kernel/src/libs/
H A Dlazy_init.rs28 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 Dpercpu.rs6 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 Dmod.rs18 libs::lazy_init::Lazy,
24 static START_INFO: Lazy<HvmStartInfo> = Lazy::new();
/DragonOS/kernel/src/init/
H A Dboot.rs10 libs::lazy_init::Lazy,
143 static BOOT_CALLBACKS: Lazy<&'static dyn BootCallbacks> = Lazy::new();
/DragonOS/kernel/src/driver/tty/pty/
H A Dmod.rs15 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 Dmultiboot2.rs21 libs::lazy_init::Lazy,
26 static MB2_INFO: Lazy<BootInformation> = Lazy::new();
/DragonOS/kernel/src/driver/base/
H A Dcpu.rs28 use crate::libs::lazy_init::Lazy;
31 static CPU_DEVICE_MANAGER: Lazy<CpuDeviceManager> = Lazy::new();
/DragonOS/kernel/src/bpf/helper/
H A Dmod.rs7 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 Dmod.rs22 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 Dfile.rs14 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 Dtty_driver.rs29 lazy_init::Lazy,
139 self_ref: Lazy<Weak<Self>>,
177 self_ref: Lazy::new(), in new()
/DragonOS/kernel/crates/intertrait/src/
H A Dlib.rs104 static CASTER_MAP: once_cell::sync::Lazy<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> =
105 once_cell::sync::Lazy::new(|| {
/DragonOS/kernel/src/sched/
H A Dmod.rs30 lazy_init::Lazy,
50 static CPU_RUNQUEUE: Lazy<PerCpuVar<Arc<CpuRunQueue>>> = PerCpuVar::define_lazy();