* \param info Task information supplied by the caller.
* \param s The scheduler instance.
*
- * \return A pointer to a newly allocated task structure. It will be
- * freed by sched_shutdown().
+ * \return A pointer to a newly allocated task. The layout of the task
+ * structure is only known to the scheduler core. The structure can be freed
+ * after \ref schedule() returned ba calling \ref sched_shutdown().
*/
struct task *task_register(struct task_info *info, struct sched *s)
{
* executables employ the scheduler.
*/
-/** \par Describes a scheduler instance. */
+/** Describes a scheduler instance. */
struct sched {
/** Initial value (in milliseconds) before any pre_monitor call. */
int default_timeout;
struct list_head task_list;
};
-struct task;
-
/**
* Information that must be supplied by callers of \ref task_register().
*