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.rs72 let obj_per_page = cmin((P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD) / $size, 8 * 64);
114 new_head as *const P as usize % P::SIZE, in insert_empty()
247 .initialize(self.size, P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD); in refill()
269 assert!(self.size <= (P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD)); in allocate()
327 assert!(self.size <= (P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD)); in deallocate()
333 P::SIZE in deallocate()
336 let page = (ptr.as_ptr() as usize) & !(P::SIZE - 1); in deallocate()
352 slab_callback.free_slab_page(slab_page as *const P as *mut u8, P::SIZE); 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()
310 const SIZE: usize = OBJECT_PAGE_SIZE; constant
/DragonOS/kernel/src/arch/riscv64/interrupt/
H A Dmod.rs112 pub const SIZE: usize = core::mem::size_of::<TrapFrame>(); constant
115 pub const SIZE_ON_STACK: usize = align_up(Self::SIZE, STACK_ALIGN);
/DragonOS/kernel/src/process/
H A Dmod.rs1400 stack: Option<AlignedBox<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>>,
1406 pub const SIZE: usize = 0x4000; constant
1412 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_zeroed()?, in new()
1428 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_unchecked( in from_existed()
1429 base.data() as *mut [u8; KernelStack::SIZE], in from_existed()
1443 return VirtAddr::new(self.stack.as_ref().unwrap().as_ptr() as usize + Self::SIZE); in stack_max_address()