Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/mm.h
Context not available. | |||||
#include <linux/gfp.h> | #include <linux/gfp.h> | ||||
#include <linux/kernel.h> | #include <linux/kernel.h> | ||||
#include <linux/mm_types.h> | #include <linux/mm_types.h> | ||||
#include <linux/mmzone.h> | |||||
#include <linux/pfn.h> | #include <linux/pfn.h> | ||||
#include <linux/list.h> | #include <linux/list.h> | ||||
Context not available. | |||||
struct vm_fault { | struct vm_fault { | ||||
unsigned int flags; | unsigned int flags; | ||||
pgoff_t pgoff; | pgoff_t pgoff; | ||||
void *virtual_address; /* user-space address */ | unsigned long address; /* user-space address */ | ||||
struct page *page; | struct page *page; | ||||
struct vm_area_struct *vma; | |||||
hselasky: why is the vma part of the vm_fault when also passed to the fault function? | |||||
Done Inline ActionsIt's not anymore. See change in fault callback function. johalun0_gmail.com: It's not anymore. See change in fault callback function. | |||||
}; | }; | ||||
struct vm_operations_struct { | struct vm_operations_struct { | ||||
void (*open) (struct vm_area_struct *); | void (*open) (struct vm_area_struct *); | ||||
void (*close) (struct vm_area_struct *); | void (*close) (struct vm_area_struct *); | ||||
int (*fault) (struct vm_area_struct *, struct vm_fault *); | int (*fault) (struct vm_fault *); | ||||
}; | }; | ||||
/* | /* | ||||
Context not available. | |||||
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 **, int *locked); | ||||
static inline void | static inline void | ||||
put_page(struct vm_page *page) | put_page(struct vm_page *page) | ||||
Context not available. |
why is the vma part of the vm_fault when also passed to the fault function?