Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/mm.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | struct vm_area_struct { | ||||
TAILQ_ENTRY(vm_area_struct) vm_entry; | TAILQ_ENTRY(vm_area_struct) vm_entry; | ||||
}; | }; | ||||
struct vm_fault { | struct vm_fault { | ||||
unsigned int flags; | unsigned int flags; | ||||
pgoff_t pgoff; | pgoff_t pgoff; | ||||
union { | union { | ||||
/* user-space address */ | /* user-space address */ | ||||
void *virtual_address; | void *virtual_address; /* < v4.11 */ | ||||
unsigned long address; | unsigned long address; /* >= v4.11 */ | ||||
}; | }; | ||||
struct page *page; | struct page *page; | ||||
struct vm_area_struct *vma; | struct vm_area_struct *vma; | ||||
}; | }; | ||||
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_area_struct *, struct vm_fault *); | ||||
int (*access) (struct vm_area_struct *, unsigned long, void *, | |||||
int, int); | |||||
}; | }; | ||||
/* | /* | ||||
* Compute log2 of the power of two rounded up count of pages | * Compute log2 of the power of two rounded up count of pages | ||||
* needed for size bytes. | * needed for size bytes. | ||||
*/ | */ | ||||
static inline int | static inline int | ||||
get_order(unsigned long size) | get_order(unsigned long size) | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |