Re: get_current()

Andi Kleen (ak@suse.de)
27 Sep 2001 22:31:41 +0200


John Kingman <kingman@VIEO.com> writes:

> I'm trying to write portable driver code.
>
> What is the status of get_current()? I see that it is defined in

You should always just use "current" from <linux/sched.h>.
get_current() is an internal implementation detail of the architecture.
Don't include <asm/current.h> directly.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/