pub fn page_num<T>(base_address: *mut T, count: usize) -> u64 {
    let address = unsafe { base_address.offset(count as isize) };
    let address_page_boundary = address as u64 & !(*memory_area::PAGE_SIZE as u64 - 1);
    (address_page_boundary - base_address as u64) / *memory_area::PAGE_SIZE as u64
}
// Return the page number of the page that `base_address[count]` falls on
Return the page number of the page that `base_address[count]` falls on
Return the page number of the page that ` base_address [ count ] ` falls on
pub fn page_num<T>(base_address: *mut T, count: usize) -> u64 {
    let address = unsafe { base_address.offset(count as isize) };
    let address_page_boundary = address as u64 & !(*memory_area::PAGE_SIZE as u64 - 1);
    (address_page_boundary - base_address as u64) / *memory_area::PAGE_SIZE as u64
}
pub fn page_num < T > ( base_address : * mut T , count : usize ) -> u64 { let address = unsafe { base_address . offset ( count as isize ) } ; let address_page_boundary = address as u64 & ! ( * memory_area :: PAGE_SIZE as u64 - 1 ) ; ( address_page_boundary - base_address as u64 ) / * memory_area :: PAGE_SIZE as u64 }
Return the page number of the page that `base_address[count]` falls on
Return the page number of the page that ` base_address [ count ] ` falls on
base_address
*mut T
count
usize
base_address
*mut T
count
usize