This global variable (really a macro) contains a pointer to
the current task structure, so is only valid in user context.
For example, when a process makes a system call, this will
point to the task structure of the calling process. It is
not NULL in interrupt context.