[−][src]Constant sunrise_kernel::frame_allocator::i386::FRAME_OFFSET_MASK
const FRAME_OFFSET_MASK: usize = 0xFFF;
The offset part in a PhysicalAddress.
let phys_address = PhysicalAddress(0xccccc567); let offset_in_frame = phys_address & FRAME_OFFSET_MASK; assert_eq!(offset_in_frame, 0x567);