Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/mm.h
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | |||||
mark_page_accessed(struct vm_page *page) | mark_page_accessed(struct vm_page *page) | ||||
{ | { | ||||
vm_page_reference(page); | vm_page_reference(page); | ||||
} | } | ||||
static inline void | static inline void | ||||
get_page(struct vm_page *page) | get_page(struct vm_page *page) | ||||
{ | { | ||||
vm_page_lock(page); | |||||
vm_page_wire(page); | vm_page_wire(page); | ||||
vm_page_unlock(page); | |||||
} | } | ||||
extern long | extern long | ||||
get_user_pages(unsigned long start, unsigned long nr_pages, | get_user_pages(unsigned long start, unsigned long nr_pages, | ||||
int gup_flags, struct page **, | int gup_flags, struct page **, | ||||
struct vm_area_struct **); | struct vm_area_struct **); | ||||
extern int | extern int | ||||
__get_user_pages_fast(unsigned long start, int nr_pages, int write, | __get_user_pages_fast(unsigned long start, int nr_pages, int write, | ||||
struct page **); | struct page **); | ||||
extern long | extern long | ||||
get_user_pages_remote(struct task_struct *, struct mm_struct *, | get_user_pages_remote(struct task_struct *, struct mm_struct *, | ||||
unsigned long start, unsigned long nr_pages, | unsigned long start, unsigned long nr_pages, | ||||
int gup_flags, struct page **, | int gup_flags, struct page **, | ||||
struct vm_area_struct **); | struct vm_area_struct **); | ||||
static inline void | static inline void | ||||
put_page(struct vm_page *page) | put_page(struct vm_page *page) | ||||
{ | { | ||||
vm_page_lock(page); | vm_page_lock(page); | ||||
if (vm_page_unwire(page, PQ_ACTIVE) && page->object == NULL) | vm_page_unwire(page, PQ_ACTIVE); | ||||
vm_page_free(page); | |||||
vm_page_unlock(page); | vm_page_unlock(page); | ||||
} | } | ||||
#define copy_highpage(to, from) pmap_copy_page(from, to) | #define copy_highpage(to, from) pmap_copy_page(from, to) | ||||
static inline pgprot_t | static inline pgprot_t | ||||
vm_get_page_prot(unsigned long vm_flags) | vm_get_page_prot(unsigned long vm_flags) | ||||
{ | { | ||||
Show All 16 Lines |