MOS Source Code
Loading...
Searching...
No Matches
table_ops.c File Reference
+ Include dependency graph for table_ops.c:

Go to the source code of this file.

Functions

void mm_do_map (pgd_t pgd, ptr_t vaddr, pfn_t pfn, size_t n_pages, vm_flags flags, bool do_refcount)
 
void mm_do_flag (pgd_t max, ptr_t vaddr, size_t n_pages, vm_flags flags)
 
void mm_do_unmap (pgd_t max, ptr_t vaddr, size_t n_pages, bool do_unref)
 
void mm_do_mask_flags (pgd_t max, ptr_t vaddr, size_t n_pages, vm_flags mask)
 
void mm_do_copy (pgd_t src, pgd_t dst, ptr_t vaddr, size_t n_pages)
 
pfn_t mm_do_get_pfn (pgd_t max, ptr_t vaddr)
 
vm_flags mm_do_get_flags (pgd_t max, ptr_t vaddr)
 
bool mm_do_get_present (pgd_t max, ptr_t vaddr)
 
void__create_page_table (void)
 
void __destroy_page_table (void *table)
 

Function Documentation

◆ mm_do_map()

void mm_do_map ( pgd_t pgd,
ptr_t vaddr,
pfn_t pfn,
size_t n_pages,
vm_flags flags,
bool do_refcount )

Definition at line 23 of file table_ops.c.

Referenced by acpi_sysfs_mmap(), mm_map_kernel_pages(), mm_map_user_pages(), mm_replace_page_locked(), and sys_mem_mmap().

+ Here is the call graph for this function:

◆ mm_do_flag()

void mm_do_flag ( pgd_t max,
ptr_t vaddr,
size_t n_pages,
vm_flags flags )

Definition at line 29 of file table_ops.c.

Referenced by mm_flag_pages_locked(), and mm_handle_fault().

+ Here is the call graph for this function:

◆ mm_do_unmap()

void mm_do_unmap ( pgd_t max,
ptr_t vaddr,
size_t n_pages,
bool do_unref )

Definition at line 35 of file table_ops.c.

Referenced by acpi_sysfs_munmap(), sys_mem_munmap(), and vmap_destroy().

+ Here is the call graph for this function:

◆ mm_do_mask_flags()

void mm_do_mask_flags ( pgd_t max,
ptr_t vaddr,
size_t n_pages,
vm_flags mask )

Definition at line 51 of file table_ops.c.

Referenced by vm_protect().

+ Here is the call graph for this function:

◆ mm_do_copy()

void mm_do_copy ( pgd_t src,
pgd_t dst,
ptr_t vaddr,
size_t n_pages )

Definition at line 57 of file table_ops.c.

Referenced by mm_clone_vmap_locked().

+ Here is the call graph for this function:

◆ mm_do_get_pfn()

pfn_t mm_do_get_pfn ( pgd_t max,
ptr_t vaddr )

Definition at line 67 of file table_ops.c.

Referenced by mm_get_phys_addr(), mm_handle_fault(), and mm_replace_page_locked().

+ Here is the call graph for this function:

◆ mm_do_get_flags()

vm_flags mm_do_get_flags ( pgd_t max,
ptr_t vaddr )

Definition at line 112 of file table_ops.c.

Referenced by mm_handle_fault().

+ Here is the call graph for this function:

◆ mm_do_get_present()

bool mm_do_get_present ( pgd_t max,
ptr_t vaddr )

Definition at line 171 of file table_ops.c.

Referenced by riscv64_trap_handler().

+ Here is the call graph for this function:

◆ __create_page_table()

void * __create_page_table ( void )

Definition at line 198 of file table_ops.c.

+ Here is the call graph for this function:

◆ __destroy_page_table()

void __destroy_page_table ( void * table)

Definition at line 204 of file table_ops.c.