Home
last modified time | relevance | path

Searched defs:VirtAddr (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dmod.rs190 pub struct VirtAddr(usize); struct
192 impl VirtAddr { impl
241 impl Add<VirtAddr> for VirtAddr { implementation
250 impl Add<usize> for VirtAddr { implementation
259 impl Sub<VirtAddr> for VirtAddr { implementation
268 impl Sub<usize> for VirtAddr { implementation
277 impl AddAssign<usize> for VirtAddr { implementation
284 impl AddAssign<VirtAddr> for VirtAddr { implementation
286 fn add_assign(&mut self, rhs: VirtAddr) { in add_assign()
291 impl SubAssign<usize> for VirtAddr { implementation
[all …]
Dsyscall.rs70 pub fn brk(new_addr: VirtAddr) -> Result<VirtAddr, SystemError> { in brk()
91 pub fn sbrk(incr: isize) -> Result<VirtAddr, SystemError> { in sbrk()
119 start_vaddr: VirtAddr, in mmap()
170 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap()
200 start_vaddr: VirtAddr, in mprotect()
Dpage.rs33 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new()
67 pub fn base(&self) -> VirtAddr { in base()
79 pub unsafe fn virt(&self) -> VirtAddr { in virt()
84 pub fn entry_base(&self, i: usize) -> Option<VirtAddr> { in entry_base()
94 pub unsafe fn entry_virt(&self, i: usize) -> Option<VirtAddr> { in entry_virt()
547 virt: VirtAddr, in map()
559 virt: VirtAddr, in map_phys()
634 ) -> Option<(VirtAddr, PageFlush<Arch>)> { in map_linearly()
652 virt: VirtAddr, in remap()
692 pub unsafe fn unmap(&mut self, virt: VirtAddr, unmap_parents: bool) -> Option<PageFlush<Arch>> { in unmap()
[all …]
Dmmio_buddy.rs115 fn give_back_block(&self, vaddr: VirtAddr, exp: u32) -> Result<i32, SystemError> { in give_back_block()
325 fn calculate_block_vaddr(&self, vaddr: VirtAddr, exp: u32) -> VirtAddr { in calculate_block_vaddr()
343 vaddr: VirtAddr, in pop_buddy_block()
531 pub fn release_mmio(&self, vaddr: VirtAddr, length: usize) -> Result<i32, SystemError> { in release_mmio()
577 pub fn vaddr(&self) -> VirtAddr { in vaddr()
Ducontext.rs238 start_vaddr: VirtAddr, in map_anonymous()
305 addr: Option<VirtAddr>, in mmap()
500 pub unsafe fn set_brk(&mut self, new_brk: VirtAddr) -> Result<VirtAddr, SystemError> { in set_brk()
532 pub unsafe fn sbrk(&mut self, incr: isize) -> Result<VirtAddr, SystemError> { in sbrk()
633 pub fn find_free(&self, min_vaddr: VirtAddr, size: usize) -> Option<VirtRegion> { in find_free()
659 min_vaddr: VirtAddr, in find_free_at()
660 vaddr: VirtAddr, in find_free_at()
1184 stack_bottom: Option<VirtAddr>, in new()
1301 pub fn sp(&self) -> VirtAddr { in sp()
1305 pub unsafe fn set_sp(&mut self, sp: VirtAddr) { in set_sp()
Dno_init.rs57 pub unsafe fn pseudo_map_phys(vaddr: VirtAddr, paddr: PhysAddr, count: PageFrameCount) { in pseudo_map_phys()
Dkernel_mapper.rs100 mut vaddr: VirtAddr, in map_phys_with_size()
/DragonOS-0.1.8/kernel/src/libs/
Delf.rs90 start: VirtAddr, in set_elf_brk()
91 end: VirtAddr, in set_elf_brk()
119 fn elf_page_start(&self, addr: VirtAddr) -> VirtAddr { in elf_page_start()
123 fn elf_page_align_up(&self, addr: VirtAddr) -> VirtAddr { in elf_page_align_up()
168 mut addr_to_map: VirtAddr, in load_elf_segment()
172 ) -> Result<(VirtAddr, bool), SystemError> { in load_elf_segment()
293 mut vaddr: VirtAddr, in do_load_file()
344 entrypoint_vaddr: VirtAddr, in create_auxv()
345 phdr_vaddr: Option<VirtAddr>, in create_auxv()
/DragonOS-0.1.8/kernel/src/syscall/
Duser_access.rs24 pub unsafe fn clear_user(dest: VirtAddr, len: usize) -> Result<usize, SystemError> { in clear_user()
33 pub unsafe fn copy_to_user(dest: VirtAddr, src: &[u8]) -> Result<usize, SystemError> { in copy_to_user()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs45 pub fn entry_point(&self) -> VirtAddr { in entry_point()
223 ) -> Result<(VirtAddr, VirtAddr), SystemError> { in push_at() argument
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs157 unsafe fn invalidate_page(address: VirtAddr) { in invalidate_page()
281 impl VirtAddr { implementation
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs240 pub fn entry_virt_addr(base_addr: PhysAddr, j: usize) -> VirtAddr { in entry_virt_addr()
Dpage_frame.rs91 pub fn virt_address(&self) -> VirtAddr { in virt_address()
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs21 type VirtAddr = usize; typedef