Re: task_struct.mm == NULL

Andi Kleen
2001-11-28T12:23:46Z

Frank Cornelis <Frank.Cornelis@rug.ac.be> writes:

> Hey,
>
> I found in some code checks for task_struct.mm being NULL.
> When can task_struct.mm of a process be NULL except right before the
> process-kill?

For kernel threads that run in lazy-mm mode. It allows a much cheaper context
switch into kernel threads.

-Andi