public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* task_struct reference counting
@ 2004-09-24 14:59 Francesco Casadei
  2004-09-24 19:13 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Francesco Casadei @ 2004-09-24 14:59 UTC (permalink / raw)
  To: Linux Kernel

How one is supposed to handle the reference count of a task_struct from a 
kernel module?

get_task_struct() and put_task_struct() do not work, because the latter can't 
be used from a module, since it calls __put_task_struct(), which is not 
EXPORT_SYMBOL()'d.

I'm running 2.6.8.1.

Thanks in advance for your time,

	Francesco Casadei

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: task_struct reference counting
  2004-09-24 14:59 task_struct reference counting Francesco Casadei
@ 2004-09-24 19:13 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2004-09-24 19:13 UTC (permalink / raw)
  To: Francesco Casadei; +Cc: Linux Kernel

On Fri, Sep 24, 2004 at 04:59:27PM +0200, Francesco Casadei wrote:
> How one is supposed to handle the reference count of a task_struct from a 
> kernel module?

I don't think you are supposed to do anything that'd need to grab a
task_struct from modular code.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-24 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-24 14:59 task_struct reference counting Francesco Casadei
2004-09-24 19:13 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox