Skip to contentSkip to conversation

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

DISCUSSION Sylvain 1 participant 1 message Dec 2, 2004

lore
Share & tools
lore

Sylvain

author
#0 lore raw

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