aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-06-05 15:37:28 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-06-05 15:37:28 +0000
commit747d9a816519f32b01ed9abc6fb6166f1ba21ba4 (patch)
tree78fb2186a0d8aaaa3346dfce7f531a8f104cde97 /sys
parent0d2dce0b7865c10f29c2bea2dcaf5d8c42d49708 (diff)
downloadsrc-747d9a816519f32b01ed9abc6fb6166f1ba21ba4.tar.gz
src-747d9a816519f32b01ed9abc6fb6166f1ba21ba4.zip
Add "access" function pointer to the "vm_operations_struct" structure
in the LinuxKPI. While at it document when to use the "virtual_address" or the "address" field in the "vm_fault" structure. Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
Notes
Notes: svn path=/head/; revision=334660
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index ad9038224716..c127697fb2c6 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -120,8 +120,8 @@ struct vm_fault {
pgoff_t pgoff;
union {
/* user-space address */
- void *virtual_address;
- unsigned long address;
+ void *virtual_address; /* < 4.11 */
+ unsigned long address; /* >= 4.11 */
};
struct page *page;
struct vm_area_struct *vma;
@@ -131,6 +131,7 @@ struct vm_operations_struct {
void (*open) (struct vm_area_struct *);
void (*close) (struct vm_area_struct *);
int (*fault) (struct vm_area_struct *, struct vm_fault *);
+ int (*access) (struct vm_area_struct *, unsigned long, void *, int, int);
};
/*