ghdk / os

Operating System
https://ghdk.github.io/os/
Other
0 stars 0 forks source link

vm_operations_struct #11

Open ghdk opened 7 years ago

ghdk commented 7 years ago

vm_ops is a pointer to a collection of methods used to perform various standard operations on the region.

<mm.h>
struct vm_operations_struct {
void (*open)(struct vm_area_struct * area);
void (*close)(struct vm_area_struct * area);
int (*fault)(struct vm_area_struct *vma, struct vm_fault *vmf); struct page * (*nopage)(struct vm_area_struct * area, unsigned long
address, int *type);
... };

Professional Linux Kernel Architecture, page 301.

ghdk commented 7 years ago

Swapspace module