Home
last modified time | relevance | path

Searched refs:PageFlags (Results 1 – 8 of 8) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dno_init.rs16 page::PageFlags,
69 let flags: PageFlags<MMArch> = PageFlags::new().set_write(true).set_execute(true); in pseudo_map_phys()
Dpage.rs211 pub fn flags(&self) -> PageFlags<Arch> { in flags()
212 unsafe { PageFlags::from_data(self.data & Arch::ENTRY_FLAGS_MASK) } in flags()
216 pub fn set_flags(&mut self, flags: PageFlags<Arch>) { in set_flags()
228 pub struct PageFlags<Arch> { struct
234 impl<Arch: MemoryManagementArch> PageFlags<Arch> { argument
261 pub fn from_prot_flags(prot_flags: ProtFlags, user: bool) -> PageFlags<Arch> { in from_prot_flags()
262 let flags: PageFlags<Arch> = PageFlags::new() in from_prot_flags()
450 impl<Arch: MemoryManagementArch> fmt::Debug for PageFlags<Arch> { implementation
548 flags: PageFlags<Arch>, in map()
561 flags: PageFlags<Arch>, in map_phys()
[all …]
Dc_adapter.rs19 page::PageFlags, MemoryManagementArch, PhysAddr, VirtAddr,
44 let mut page_flags: PageFlags<MMArch> = PageFlags::new().set_execute(true).set_write(true); in rs_map_phys()
Dkernel_mapper.rs1 use super::{page::PageFlags, PageTableKind, PhysAddr, VirtAddr};
103 flags: PageFlags<MMArch>, in map_phys_with_size()
Ducontext.rs33 page::{Flusher, InactiveFlusher, PageFlags, PageFlushAll},
167 let tmp_flags: PageFlags<MMArch> = PageFlags::new().set_write(true); in try_clone()
299 PageFlags<MMArch>, in mmap()
348 PageFlags::from_prot_flags(prot_flags, true), in mmap()
453 let new_flags: PageFlags<MMArch> = r_guard in mprotect()
824 flags: PageFlags<MMArch>, in remap()
938 flags: PageFlags<MMArch>,
976 pub fn flags(&self) -> PageFlags<MMArch> { in flags()
989 flags: PageFlags<MMArch>, in remap()
1035 flags: PageFlags<MMArch>, in physmap()
[all …]
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio_impl.rs6 use crate::mm::page::PageFlags;
35 let dma_flags: PageFlags<MMArch> = PageFlags::mmio_flags(); in dma_alloc()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs25 use crate::mm::page::{PageEntry, PageFlags};
557 pub unsafe fn kernel_page_flags<A: MemoryManagementArch>(virt: VirtAddr) -> PageFlags<A> { in kernel_page_flags()
562 return PageFlags::new().set_execute(true).set_write(true); in kernel_page_flags()
565 return PageFlags::new().set_execute(true); in kernel_page_flags()
567 return PageFlags::new().set_write(true).set_execute(true); in kernel_page_flags()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs10 use crate::mm::page::PageFlags;
651 let page_flags = PageFlags::mmio_flags(); in map()
1437 let page_flags = PageFlags::new() in pci_bar_init()