Rev 1757 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1757 | Rev 1780 | ||
|---|---|---|---|
| Line 101... | Line 101... | ||
| 101 | * the handler. |
101 | * the handler. |
| 102 | * @param f Timeout handler function. |
102 | * @param f Timeout handler function. |
| 103 | * @param arg Timeout handler argument. |
103 | * @param arg Timeout handler argument. |
| 104 | * |
104 | * |
| 105 | */ |
105 | */ |
| 106 | void timeout_register(timeout_t *t, __u64 time, timeout_handler_t f, void *arg) |
106 | void timeout_register(timeout_t *t, uint64_t time, timeout_handler_t f, void *arg) |
| 107 | { |
107 | { |
| 108 | timeout_t *hlp = NULL; |
108 | timeout_t *hlp = NULL; |
| 109 | link_t *l, *m; |
109 | link_t *l, *m; |
| 110 | ipl_t ipl; |
110 | ipl_t ipl; |
| 111 | __u64 sum; |
111 | uint64_t sum; |
| 112 | 112 | ||
| 113 | ipl = interrupts_disable(); |
113 | ipl = interrupts_disable(); |
| 114 | spinlock_lock(&CPU->timeoutlock); |
114 | spinlock_lock(&CPU->timeoutlock); |
| 115 | spinlock_lock(&t->lock); |
115 | spinlock_lock(&t->lock); |
| 116 | 116 | ||