- /** Whether this task is in error state. */
- int error;
- /** Position of the task in the pre_select list of the scheduler. */
- struct list_head pre_select_node;
- /** Position of the task in the post_select list of the scheduler. */
- struct list_head post_select_node;
- /** Descriptive text and current status of the task. */
- char status[255];
- /** If less than zero, the task was notified by another task. */
- int notification;
+ /**
+ * This pointer is saved when the task is register(ed). It may be
+ * queried from ->pre_select() and ->post_select() via \ref
+ * task_context(). Usually this is a pointer to the struct owned by the
+ * caller which contains the task pointer as one member.
+ */
+ void *context;