Skip to contentSkip to conversation

__put_task_struct

DISCUSSION Frank Cornelis 3 participants 3 messages Jul 16, 2003 – Jul 18, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

When using get/put_task_struct from inside a module, kbuild warns about __put_task_struct being undefined. Can someone export this function?

Frank.

#1 lore raw
Quoted 5 lines · Frank Cornelis

Hi,

When using get/put_task_struct from inside a module, kbuild warns about __put_task_struct being undefined. Can someone export this function?

Why would you use it in a module?

#2 lore raw
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · Frank Cornelis

When using get/put_task_struct from inside a module, kbuild warns about __put_task_struct being undefined. Can someone export this function?

Why would you use it in a module?

To make sure nobody destroys the task_struct while I'm manipulating it (of course using task_lock/unlock). I'm just using the same 'lock strategy' as done in asm/i386/kernel/ptrace.c and I guess that code is correct.

Frank.