|
|
| version 1.9.2.2, 2012/05/31 21:36:40 | version 1.10, 2012/05/31 22:31:48 |
|---|---|
| Line 104 schedRegisterHooks(sched_root_task_t * __restrict root | Line 104 schedRegisterHooks(sched_root_task_t * __restrict root |
| root->root_hooks.hook_add.alarm = sched_hook_alarm; | root->root_hooks.hook_add.alarm = sched_hook_alarm; |
| root->root_hooks.hook_add.node = sched_hook_node; | root->root_hooks.hook_add.node = sched_hook_node; |
| root->root_hooks.hook_add.proc = sched_hook_proc; | root->root_hooks.hook_add.proc = sched_hook_proc; |
| root->root_hooks.hook_add.user = sched_hook_user; | |
| root->root_hooks.hook_add.signal = sched_hook_signal; | root->root_hooks.hook_add.signal = sched_hook_signal; |
| #ifdef EVFILT_USER | |
| root->root_hooks.hook_add.user = sched_hook_user; | |
| #endif | |
| root->root_hooks.hook_exec.cancel = sched_hook_cancel; | root->root_hooks.hook_exec.cancel = sched_hook_cancel; |
| root->root_hooks.hook_exec.fetch = sched_hook_fetch; | root->root_hooks.hook_exec.fetch = sched_hook_fetch; |
| Line 309 schedFetch(sched_root_task_t * __restrict root) | Line 311 schedFetch(sched_root_task_t * __restrict root) |
| int | int |
| schedTrigger(sched_task_t * __restrict task) | schedTrigger(sched_task_t * __restrict task) |
| { | { |
| #ifndef EVFILT_USER | |
| sched_SetErr(ENOTSUP, "Not supported kevent() filter"); | |
| return -1; | |
| #else | |
| struct kevent chg[1]; | struct kevent chg[1]; |
| struct timespec timeout = { 0, 0 }; | struct timespec timeout = { 0, 0 }; |
| Line 326 schedTrigger(sched_task_t * __restrict task) | Line 332 schedTrigger(sched_task_t * __restrict task) |
| } | } |
| return 0; | return 0; |
| #endif | |
| } | } |
| /* | /* |