aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-08-06 10:48:20 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-08-06 10:48:20 +0000
commit549dcdb34e38f475111de691361dc7e15c75061f (patch)
treeb2fa6721e79d3725f710960095254d1794adb4a4 /sys/compat/linuxkpi/common/include/linux/sched.h
parent936b2b64ae413c203b397023d4844f8f657c452a (diff)
downloadsrc-549dcdb34e38f475111de691361dc7e15c75061f.tar.gz
src-549dcdb34e38f475111de691361dc7e15c75061f.zip
Implement current_work() function in the LinuxKPI.
Tested by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=337376
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 7ba4df34247f..d0a5fde27cda 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -60,6 +60,7 @@
#define TASK_COMM_LEN (MAXCOMLEN + 1)
+struct work_struct;
struct task_struct {
struct thread *task_thread;
struct mm_struct *mm;
@@ -78,6 +79,7 @@ struct task_struct {
TAILQ_ENTRY(task_struct) rcu_entry;
int rcu_recurse;
int bsd_interrupt_value;
+ struct work_struct *work; /* current work struct, if set */
};
#define current ({ \