aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2017-03-17 10:30:06 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2017-03-17 10:30:06 +0000
commit05d4f501dca39533643c9e889a38703869c7c492 (patch)
tree5df0ff280d029fbbb76379ef9e06e1b536be587f /sys/compat/linuxkpi/common/include/linux/sched.h
parent0a2f4606bb7b632fe902d16cfd5a661979d47169 (diff)
downloadsrc-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/sched.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 19a2996d2c7c..3ea479d2b85d 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -40,6 +40,7 @@
#include <linux/types.h>
#include <linux/completion.h>
#include <linux/slab.h>
+#include <linux/mm_types.h>
#include <asm/atomic.h>
@@ -54,6 +55,7 @@
struct task_struct {
struct thread *task_thread;
+ struct mm_struct *mm;
linux_task_fn_t *task_fn;
void *task_data;
int task_ret;