Re: Weightless process class

From: Nathan Paul Simons (npsimons@fsmlabs.com)
Date: Wed Oct 04 2000 - 15:08:53 EST


On Wed, Oct 04, 2000 at 04:16:22PM -0300, Rik van Riel wrote:
> Do we have something like an in_kernel(proc) macro ???

"user_mode()" in include/asm/ptrace.h? But that only checks to see if
the regs struct you passed it are from a kernel thread or not. No
checks to see if the process has any kernel locks.

-- 
Nathan Paul Simons, Junior Software Engineer for FSMLabs
http://www.fsmlabs.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Oct 07 2000 - 21:00:14 EST