set_current_state() vs current->state

From: Frank Davis (fdavis112@juno.com)
Date: Sun Oct 01 2000 - 02:04:31 EST


Hello all,
     I've been going through the drivers/block code (almost done) and noticed the use of, eg.:
set_current_state(TASK_RUNNING); and also
current->state = TASK_RUNNING;

Which one is most recent, and is there a suggestion on which one to use?

-Frank

-
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:07 EST