Re: get_current()

From: Andi Kleen (
Date: Thu Sep 27 2001 - 15:31:41 EST

John Kingman <> 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:58 EST