Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2018 06:39:32 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r335416 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201806200639.w5K6dW9n020975@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Jun 20 06:39:32 2018
New Revision: 335416
URL: https://svnweb.freebsd.org/changeset/base/335416

Log:
  MFC r334660:
  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>
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/mm.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/mm.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/mm.h	Wed Jun 20 06:38:46 2018	(r335415)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/mm.h	Wed Jun 20 06:39:32 2018	(r335416)
@@ -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);
 };
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806200639.w5K6dW9n020975>