svn commit: r316565 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Thu Apr 6 10:52:53 UTC 2017


Author: hselasky
Date: Thu Apr  6 10:52:52 2017
New Revision: 316565
URL: https://svnweb.freebsd.org/changeset/base/316565

Log:
  Define VM_READ, VM_WRITE and VM_EXEC in the LinuxKPI.
  
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/mm.h

Modified: head/sys/compat/linuxkpi/common/include/linux/mm.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/mm.h	Thu Apr  6 10:29:54 2017	(r316564)
+++ head/sys/compat/linuxkpi/common/include/linux/mm.h	Thu Apr  6 10:52:52 2017	(r316565)
@@ -50,6 +50,10 @@
  */
 CTASSERT((VM_PROT_ALL & -(1 << 8)) == 0);
 
+#define	VM_READ			VM_PROT_READ
+#define	VM_WRITE		VM_PROT_WRITE
+#define	VM_EXEC			VM_PROT_EXECUTE
+
 #define	VM_PFNINTERNAL		(1 << 8)	/* FreeBSD private flag to vm_insert_pfn() */
 #define	VM_MIXEDMAP		(1 << 9)
 #define	VM_NORESERVE		(1 << 10)


More information about the svn-src-all mailing list