distinguish kernel thread / user task

From: Sylvain
Date: Fri Dec 03 2004 - 12:22:06 EST


Hi all,

I have little question while doing some kernel implementation.
How can I distinguish whether a task_struct is actually kernel thread
or mere 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/