]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Export kthread primitives
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Jun 2004 01:35:56 +0000 (18:35 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 1 Jun 2004 01:35:56 +0000 (18:35 -0700)
kthreads are not just for breakfast anymore.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (creator)
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/kthread.c

index 2e60249d4a990761747fb79cd59b55326e770989..da0ec5b25cdfd9054371cebca9e9a5cffd122891 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/err.h>
 #include <linux/unistd.h>
 #include <linux/file.h>
+#include <linux/module.h>
 #include <asm/semaphore.h>
 
 struct kthread_create_info
@@ -41,7 +42,7 @@ int kthread_should_stop(void)
 {
        return (kthread_stop_info.k == current);
 }
-
+EXPORT_SYMBOL(kthread_should_stop);
 
 static void kthread_exit_files(void)
 {
@@ -144,6 +145,7 @@ struct task_struct *kthread_create(int (*threadfn)(void *data),
 
        return create.result;
 }
+EXPORT_SYMBOL(kthread_create);
 
 void kthread_bind(struct task_struct *k, unsigned int cpu)
 {
@@ -153,6 +155,7 @@ void kthread_bind(struct task_struct *k, unsigned int cpu)
        set_task_cpu(k, cpu);
        k->cpus_allowed = cpumask_of_cpu(cpu);
 }
+EXPORT_SYMBOL(kthread_bind);
 
 int kthread_stop(struct task_struct *k)
 {
@@ -180,3 +183,4 @@ int kthread_stop(struct task_struct *k)
 
        return ret;
 }
+EXPORT_SYMBOL(kthread_stop);