Lines Matching defs:Page
38 /// Representation of a non-owning reference to a [`Page`].
40 /// This type provides a borrowed version of a [`Page`] that is owned by some other entity, e.g. a
47 /// use kernel::page::{BorrowedPage, Page, PAGE_SIZE};
80 pub struct BorrowedPage<'a>(ManuallyDrop<Page>, PhantomData<&'a Page>);
90 let page = Page { page: ptr };
99 type Target = Page;
123 pub struct Page {
129 unsafe impl Send for Page {}
133 unsafe impl Sync for Page {}
135 impl Page {
143 /// use kernel::page::Page;
145 /// let page = Page::alloc_page(GFP_KERNEL)?;
152 /// use kernel::page::Page;
154 /// let page = Page::alloc_page(GFP_KERNEL | __GFP_ZERO)?;
164 // allocated page. We transfer that ownership to the new `Page` object.
190 // SAFETY: `page` is valid due to the type invariants on `Page`.
339 impl Drop for Page {