Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs71 obj_per_page: cmin((P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD) / $size, 8 * 64),
106 new_head as *const P as usize % P::SIZE, in insert_empty()
239 .initialize(self.size, P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD); in refill()
260 assert!(self.size <= (P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD)); in allocate()
309 assert!(self.size <= (P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD)); in deallocate()
315 P::SIZE in deallocate()
318 let page = (ptr.as_ptr() as usize) & !(P::SIZE - 1); in deallocate()
H A Dpages.rs198 const SIZE: usize; constant
212 self.bitfield().first_fit(base_addr, layout, Self::SIZE) in first_fit()
246 let page_offset = ((ptr.as_ptr() as usize) - align_offset) & (Self::SIZE - 1); in deallocate()
296 const SIZE: usize = OBJECT_PAGE_SIZE; constant
/DragonOS/kernel/src/arch/riscv64/interrupt/
H A Dmod.rs110 pub const SIZE: usize = core::mem::size_of::<TrapFrame>(); constant
113 pub const SIZE_ON_STACK: usize = align_up(Self::SIZE, STACK_ALIGN);
/DragonOS/kernel/src/process/
H A Dmod.rs1356 stack: Option<AlignedBox<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>>,
1362 pub const SIZE: usize = 0x4000; constant
1368 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_zeroed()?, in new()
1384 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_unchecked( in from_existed()
1385 base.data() as *mut [u8; KernelStack::SIZE], in from_existed()
1399 return VirtAddr::new(self.stack.as_ref().unwrap().as_ptr() as usize + Self::SIZE); in stack_max_address()