diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-03-17 10:30:06 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-03-17 10:30:06 +0000 |
commit | 05d4f501dca39533643c9e889a38703869c7c492 (patch) | |
tree | 5df0ff280d029fbbb76379ef9e06e1b536be587f /sys/compat/linuxkpi/common/include/linux/mm.h | |
parent | 0a2f4606bb7b632fe902d16cfd5a661979d47169 (diff) | |
download | src-05d4f501dca39533643c9e889a38703869c7c492.tar.gz src-05d4f501dca39533643c9e889a38703869c7c492.zip |
Implement minimalistic memory mapping structure, struct mm_struct, and
some associated helper functions in the LinuxKPI. Let the existing
linux_alloc_current() function allocate and initialize the new
structure and let linux_free_current() drop the refcount on the memory
mapping structure. When the mm_struct's refcount reaches zero, the
structure is freed.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes
Notes:
svn path=/head/; revision=315443
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/mm.h')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h index 3835e34153d0..6aae001d6c30 100644 --- a/sys/compat/linuxkpi/common/include/linux/mm.h +++ b/sys/compat/linuxkpi/common/include/linux/mm.h @@ -36,6 +36,7 @@ #include <linux/spinlock.h> #include <linux/gfp.h> #include <linux/kernel.h> +#include <linux/mm_types.h> #define PAGE_ALIGN(x) ALIGN(x, PAGE_SIZE) |