do_exit
From: Anirban Sinha
Date: Thu Jul 30 2009 - 21:20:38 EST
Hi all:
I have a small question regarding the function do_exit(). At the very
beginning of the function, it takes a reference (tsk) to "current" and
then it passes this reference to other functions. I am wondering where
there is any reason for not passing "current" directly in this case.
Does current gets clobbered/not trustable in this case? If we could pass
current directly, lot of the other functions could be cleaned up and
made to pass one less parameter.
Just curious.
Thanks
Ani
--
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/