aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorStefani Seibold <stefani@seibold.net>2014-03-17 18:22:02 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2014-03-18 15:51:56 -0400
commit3935ed6a3a533c1736e3ca65bff72afd1773be27 (patch)
treef8f9eb07a9b3e05f5b143e032e4b59a4b62836a6 /include/linux/mm.h
parentd2312e3379d581d2c3603357a0181046448e1de3 (diff)
mm: Add new func _install_special_mapping() to mmap.c
The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the additonal vvar and hpet pages into the 32 bit address space. This will be done with io_remap_pfn_range() and remap_pfn_range, which requieres a vm_area_struct. Reviewed-by: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Stefani Seibold <stefani@seibold.net> Link: http://lkml.kernel.org/r/1395094933-14252-3-git-send-email-stefani@seibold.net Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index c1b7414c7bef..6c7fedf5db2b 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1750,6 +1750,9 @@ extern void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file);
1750extern struct file *get_mm_exe_file(struct mm_struct *mm); 1750extern struct file *get_mm_exe_file(struct mm_struct *mm);
1751 1751
1752extern int may_expand_vm(struct mm_struct *mm, unsigned long npages); 1752extern int may_expand_vm(struct mm_struct *mm, unsigned long npages);
1753extern struct vm_area_struct *_install_special_mapping(struct mm_struct *mm,
1754 unsigned long addr, unsigned long len,
1755 unsigned long flags, struct page **pages);
1753extern int install_special_mapping(struct mm_struct *mm, 1756extern int install_special_mapping(struct mm_struct *mm,
1754 unsigned long addr, unsigned long len, 1757 unsigned long addr, unsigned long len,
1755 unsigned long flags, struct page **pages); 1758 unsigned long flags, struct page **pages);