From 9102d1e21ddb02c1f84998116a341941bb99d5c1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 31 May 2004 18:35:56 -0700 Subject: [PATCH] [PATCH] Export kthread primitives kthreads are not just for breakfast anymore. Signed-off-by: Rusty Russell (creator) Signed-off-by: Linus Torvalds --- kernel/kthread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index 2e60249d4a990..da0ec5b25cdfd 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -11,6 +11,7 @@ #include #include #include +#include #include 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); -- 2.53.0