task_struct reference counting

From: Francesco Casadei
Date: Fri Sep 24 2004 - 10:05:21 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/