Searched refs:SIZE (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | sc.rs | 72 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() 324 assert!(self.size <= (P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD)); in deallocate() 330 P::SIZE in deallocate() 333 let page = (ptr.as_ptr() as usize) & !(P::SIZE - 1); in deallocate() 349 slab_callback.free_slab_page(slab_page as *const P as *mut u8, P::SIZE); in deallocate()
|
H A D | pages.rs | 198 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 D | mod.rs | 112 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 D | mod.rs | 1397 stack: Option<AlignedBox<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>>, 1403 pub const SIZE: usize = 0x4000; constant 1409 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_zeroed()?, in new() 1425 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_unchecked( in from_existed() 1426 base.data() as *mut [u8; KernelStack::SIZE], in from_existed() 1440 return VirtAddr::new(self.stack.as_ref().unwrap().as_ptr() as usize + Self::SIZE); in stack_max_address()
|