2003-07-16 14:43:38

by Frank Cornelis

[permalink] [raw]
Subject: __put_task_struct


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.


2003-07-17 15:47:45

by Christoph Hellwig

[permalink] [raw]
Subject: Re: __put_task_struct

On Wed, Jul 16, 2003 at 04:58:15PM +0200, Frank Cornelis wrote:
>
> 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?

2003-07-18 05:56:40

by Frank Cornelis

[permalink] [raw]
Subject: Re: __put_task_struct

On Thu, 17 Jul 2003, Christoph Hellwig wrote:

> On Wed, Jul 16, 2003 at 04:58:15PM +0200, Frank Cornelis wrote:

> > 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.