* The caller must allocate and initialize the structure \a ici points to.
*
* \return Standard.
- * \sa \ref register_task().
*/
int i9e_open(struct i9e_client_info *ici, struct sched *s)
{
}
}
-/**
- * Add a task to the scheduler. Deprecated.
- *
- * \param t The task to add.
- * \param s The scheduler instance to add the task to.
- *
- * \sa task::pre_select, task::post_select
- */
-void register_task(struct sched *s, struct task *t)
-{
- PARA_INFO_LOG("registering %s (%p)\n", t->status, t);
- assert(t->post_select);
- t->notification = 0;
- t->owned_by_sched = false;
- if (!s->task_list.next)
- INIT_LIST_HEAD(&s->task_list);
- list_add_tail(&t->node, &s->task_list);
-}
-
/**
* Add a task to the scheduler task list.
*
struct task *task_register(struct task_info *info, struct sched *s);
void *task_context(struct task *t);
-void register_task(struct sched *s, struct task *t);
int schedule(struct sched *s);
void sched_shutdown(struct sched *s);
char *get_task_list(struct sched *s);