#include <agnix/agnix.h>
#include <agnix/timers.h>
#include <agnix/tasks.h>
#include <agnix/sched.h>
Include dependency graph for sleep.c:
Go to the source code of this file.
Functions | |
void | sleep_timer_expire (void *data) |
void | sleep_timeout (u32 timeout_jiffies) |
|
Definition at line 24 of file sleep.c. References register_timer(), sched_deactivate_task(), schedule_task(), and sleep_timer_expire(). Referenced by apm_task_start(). 00025 { 00026 struct timer_s sleep_timer; 00027 00028 sleep_timer.timer_function = sleep_timer_expire; 00029 sleep_timer.timer_data = (void *)current_task; 00030 sleep_timer.timer_expire = timeout_jiffies; 00031 sleep_timer.timer_flags = TIMER_FLAG_ONESHOT; 00032 00033 sched_deactivate_task(current_task); 00034 register_timer(&sleep_timer); 00035 00036 schedule_task(); 00037 }
Here is the call graph for this function: |
|
Definition at line 19 of file sleep.c. References sched_activate_task(). Referenced by sleep_timeout(). 00020 { 00021 sched_activate_task((struct task_s *)data); 00022 }
Here is the call graph for this function: |