how to distinguish if a task_struct belong to a kernel thread or a user task?

From: Sylvain
Date: Thu Dec 02 2004 - 16:55:31 EST


Hi all,

I have little question while doing some kernel implementation.
How to distinguish if a task_struct belongs to a kernel thread or user task.?

My idea was to look at task_struct "mm" field to discriminate them,
but that was wrong.

Thanks,

Sylvain
-
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/