Home
last modified time | relevance | path

Searched refs:AlignedBox (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/libs/
H A Dalign.rs18 pub struct AlignedBox<T, const ALIGN: usize> { struct
22 impl<T, const ALIGN: usize> AlignedBox<T, ALIGN> { implementation
57 return Ok(AlignedBox { in new_zeroed()
64 return AlignedBox { in new_unchecked()
70 impl<T, const ALIGN: usize> Debug for AlignedBox<T, ALIGN> { implementation
83 impl<T, const ALIGN: usize> Drop for AlignedBox<T, ALIGN> { implementation
94 impl<T, const ALIGN: usize> core::ops::Deref for AlignedBox<T, ALIGN> { implementation
102 impl<T, const ALIGN: usize> core::ops::DerefMut for AlignedBox<T, ALIGN> { implementation
108 impl<T: Clone + SafeForZero, const ALIGN: usize> Clone for AlignedBox<T, ALIGN> { implementation
110 let mut new: AlignedBox<T, ALIGN> = in clone()
/DragonOS/kernel/src/driver/acpi/
H A Dmod.rs11 libs::align::{page_align_down, page_align_up, AlignedBox},
32 static mut RSDP_TMP_BOX: Option<AlignedBox<[u8; 4096], 4096>> = None;
120 RSDP_TMP_BOX = Some(AlignedBox::new_zeroed().expect("rs_acpi_init(): failed to alloc")) in rsdp_paddr()
/DragonOS/kernel/src/process/
H A Dmod.rs36 align::AlignedBox,
1356 stack: Option<AlignedBox<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>>,
1368 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_zeroed()?, in new()
1384 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_unchecked( in from_existed()