diff options
Diffstat (limited to 'sys/compat/linuxkpi/common/src/linux_kthread.c')
-rw-r--r-- | sys/compat/linuxkpi/common/src/linux_kthread.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_kthread.c b/sys/compat/linuxkpi/common/src/linux_kthread.c index 26afe005ea59..2fba700fa283 100644 --- a/sys/compat/linuxkpi/common/src/linux_kthread.c +++ b/sys/compat/linuxkpi/common/src/linux_kthread.c @@ -25,8 +25,6 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <linux/compat.h> #include <linux/kthread.h> #include <linux/sched.h> @@ -165,3 +163,19 @@ linux_kthread_fn(void *arg __unused) } kthread_exit(); } + +void +lkpi_kthread_work_fn(void *context, int pending __unused) +{ + struct kthread_work *work = context; + + work->func(work); +} + +void +lkpi_kthread_worker_init_fn(void *context, int pending __unused) +{ + struct kthread_worker *worker = context; + + worker->task = current; +} |