Searched refs:AlignedBox (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/libs/ |
H A D | align.rs | 18 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 D | mod.rs | 11 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 D | mod.rs | 36 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()
|