diff options
author | venkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com> | 2008-12-19 16:47:27 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-19 18:40:30 -0500 |
commit | d87fe6607c31944f7572f965c1507ae77026c133 (patch) | |
tree | 56e41312b33ca3fe2bca50252f436e5f19e256a8 /include/linux/mm.h | |
parent | 6bd9cd50c830eb88d571c492ec370a30bf999e15 (diff) |
x86: PAT: modify follow_phys to return phys_addr prot and return value
Impact: Changes and globalizes an existing static interface.
Follow_phys does similar things as follow_pfnmap_pte. Make a minor change
to follow_phys so that it can be used in place of follow_pfnmap_pte.
Physical address return value with 0 as error return does not work in
follow_phys as the actual physical address 0 mapping may exist in pte.
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/mm.h')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 35f811b0cd69..2f6e2f886d4b 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -804,6 +804,8 @@ int copy_page_range(struct mm_struct *dst, struct mm_struct *src, | |||
804 | struct vm_area_struct *vma); | 804 | struct vm_area_struct *vma); |
805 | void unmap_mapping_range(struct address_space *mapping, | 805 | void unmap_mapping_range(struct address_space *mapping, |
806 | loff_t const holebegin, loff_t const holelen, int even_cows); | 806 | loff_t const holebegin, loff_t const holelen, int even_cows); |
807 | int follow_phys(struct vm_area_struct *vma, unsigned long address, | ||
808 | unsigned int flags, unsigned long *prot, resource_size_t *phys); | ||
807 | int generic_access_phys(struct vm_area_struct *vma, unsigned long addr, | 809 | int generic_access_phys(struct vm_area_struct *vma, unsigned long addr, |
808 | void *buf, int len, int write); | 810 | void *buf, int len, int write); |
809 | 811 | ||