diff options
| author | venkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com> | 2008-12-18 14:41:29 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-18 16:30:15 -0500 |
| commit | 2ab640379a0ab4cef746ced1d7e04a0941774bcb (patch) | |
| tree | 53837aaa257f463a0b40c4d00a80fec936558f49 /include/linux | |
| parent | e121e418441525b5636321fe03d16f0193ad218e (diff) | |
x86: PAT: hooks in generic vm code to help archs to track pfnmap regions - v3
Impact: Introduces new hooks, which are currently null.
Introduce generic hooks in remap_pfn_range and vm_insert_pfn and
corresponding copy and free routines with reserve and free tracking.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a25024ff9c11..87ecb40e11a0 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -155,6 +155,12 @@ static inline int is_pfn_mapping(struct vm_area_struct *vma) | |||
| 155 | return (vma->vm_flags & VM_PFNMAP); | 155 | return (vma->vm_flags & VM_PFNMAP); |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | extern int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t prot, | ||
| 159 | unsigned long pfn, unsigned long size); | ||
| 160 | extern int track_pfn_vma_copy(struct vm_area_struct *vma); | ||
| 161 | extern void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn, | ||
| 162 | unsigned long size); | ||
| 163 | |||
| 158 | /* | 164 | /* |
| 159 | * vm_fault is filled by the the pagefault handler and passed to the vma's | 165 | * vm_fault is filled by the the pagefault handler and passed to the vma's |
| 160 | * ->fault function. The vma's ->fault is responsible for returning a bitmask | 166 | * ->fault function. The vma's ->fault is responsible for returning a bitmask |
