Lines Matching defs:Page
60 /// Representation of a non-owning reference to a [`Page`].
62 /// This type provides a borrowed version of a [`Page`] that is owned by some other entity, e.g. a
69 /// use kernel::page::{BorrowedPage, Page, PAGE_SIZE};
102 pub struct BorrowedPage<'a>(ManuallyDrop<Page>, PhantomData<&'a Page>);
112 let page = Page { page: ptr };
121 type Target = Page;
145 pub struct Page {
151 unsafe impl Send for Page {}
155 unsafe impl Sync for Page {}
157 impl Page {
165 /// use kernel::page::Page;
167 /// let page = Page::alloc_page(GFP_KERNEL)?;
174 /// use kernel::page::Page;
176 /// let page = Page::alloc_page(GFP_KERNEL | __GFP_ZERO)?;
186 // allocated page. We transfer that ownership to the new `Page` object.
218 // SAFETY: `page` is valid due to the type invariants on `Page`.
367 impl Drop for Page {