Lines Matching defs:PAGE_SIZE
23 pub const PAGE_SIZE: usize = bindings::PAGE_SIZE;
26 pub const PAGE_MASK: usize = !(PAGE_SIZE - 1);
28 /// Round up the given number to the next multiple of [`PAGE_SIZE`].
30 /// It is incorrect to pass an address where the next multiple of [`PAGE_SIZE`] doesn't fit in a
33 // Parentheses around `PAGE_SIZE - 1` to avoid triggering overflow sanitizers in the wrong
35 (addr + (PAGE_SIZE - 1)) & PAGE_MASK
47 /// use kernel::page::{BorrowedPage, Page, PAGE_SIZE};
50 /// fn borrow_page<'a>(vbox: &'a mut VBox<MaybeUninit<[u8; PAGE_SIZE]>>) -> BorrowedPage<'a> {
66 /// let mut vbox = VBox::<[u8; PAGE_SIZE]>::new_uninit(GFP_KERNEL)?;
70 /// unsafe { page.fill_zero_raw(0, PAGE_SIZE)? };
186 /// `PAGE_SIZE` bytes and for the duration in which the closure is called. The pointer might
242 let bounds_ok = off <= PAGE_SIZE && len <= PAGE_SIZE && (off + len) <= PAGE_SIZE;
246 // SAFETY: The `off` integer is at most `PAGE_SIZE`, so this pointer offset will