Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/pmap.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
* vm_memattr_t pmap_page_get_memattr(vm_page_t); | * vm_memattr_t pmap_page_get_memattr(vm_page_t); | ||||
* boolean_t pmap_page_is_mapped(vm_page_t); | * boolean_t pmap_page_is_mapped(vm_page_t); | ||||
* boolean_t pmap_page_is_write_mapped(vm_page_t); | * boolean_t pmap_page_is_write_mapped(vm_page_t); | ||||
* void pmap_page_set_memattr(vm_page_t, vm_memattr_t); | * void pmap_page_set_memattr(vm_page_t, vm_memattr_t); | ||||
*/ | */ | ||||
#include <machine/pmap.h> | #include <machine/pmap.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/_cpuset.h> | |||||
struct thread; | struct thread; | ||||
/* | /* | ||||
* Updates to kernel_vm_end are synchronized by the kernel_map's system mutex. | * Updates to kernel_vm_end are synchronized by the kernel_map's system mutex. | ||||
*/ | */ | ||||
extern vm_offset_t kernel_vm_end; | extern vm_offset_t kernel_vm_end; | ||||
/* | /* | ||||
Show All 12 Lines | |||||
* First, it bounds the cost of reference bit maintenance on widely shared | * First, it bounds the cost of reference bit maintenance on widely shared | ||||
* pages. Second, it prevents numeric overflow during maintenance of a | * pages. Second, it prevents numeric overflow during maintenance of a | ||||
* widely shared page's "act_count" field. An overflow could result in the | * widely shared page's "act_count" field. An overflow could result in the | ||||
* premature deactivation of the page. | * premature deactivation of the page. | ||||
*/ | */ | ||||
#define PMAP_TS_REFERENCED_MAX 5 | #define PMAP_TS_REFERENCED_MAX 5 | ||||
void pmap_activate(struct thread *td); | void pmap_activate(struct thread *td); | ||||
void pmap_active_cpus(pmap_t pmap, cpuset_t *res); | |||||
void pmap_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, | void pmap_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, | ||||
int advice); | int advice); | ||||
void pmap_align_superpage(vm_object_t, vm_ooffset_t, vm_offset_t *, | void pmap_align_superpage(vm_object_t, vm_ooffset_t, vm_offset_t *, | ||||
vm_size_t); | vm_size_t); | ||||
void pmap_clear_modify(vm_page_t m); | void pmap_clear_modify(vm_page_t m); | ||||
void pmap_copy(pmap_t, pmap_t, vm_offset_t, vm_size_t, vm_offset_t); | void pmap_copy(pmap_t, pmap_t, vm_offset_t, vm_size_t, vm_offset_t); | ||||
void pmap_copy_page(vm_page_t, vm_page_t); | void pmap_copy_page(vm_page_t, vm_page_t); | ||||
void pmap_copy_pages(vm_page_t ma[], vm_offset_t a_offset, | void pmap_copy_pages(vm_page_t ma[], vm_offset_t a_offset, | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |