2003-08-04 12:54:16

by Frank Cornelis

[permalink] [raw]
Subject: [PATCH] get/put_task_struct

Hi,

In order to be able to safely manipulate a task_struct from within a
module one should use get/put_task_struct. This is currently not
possible because __put_task_struct is not exported. Next patch solves
this issue.

Frank.

--- linux-2.6.0-test2.orig/kernel/ksyms.c 2003-07-29 10:04:45.000000000 +0200
+++ linux-2.6.0-test2/kernel/ksyms.c 2003-07-29 14:11:40.000000000 +0200
@@ -495,6 +495,7 @@
#if !defined(__ia64__)
EXPORT_SYMBOL(loops_per_jiffy);
#endif
+EXPORT_SYMBOL(__put_task_struct);


/* misc */