| 265 | |
| 266 | |
| 267 | int register_utimer(char *label, utimer_function f, void* param, |
| 268 | unsigned int interval, unsigned short flags) |
| 269 | { |
| 270 | struct os_timer* t; |
| 271 | |
| 272 | flags = flags | TIMER_FLAG_IS_UTIMER; /* just to be sure */ |
| 273 | t = new_os_timer( label, flags, (timer_function*)f, param, interval); |
| 274 | if (t==NULL) |
| 275 | return E_OUT_OF_MEM; |
| 276 | /* insert it into the utimer list*/ |
| 277 | t->next = utimer_list; |
| 278 | utimer_list = t; |
| 279 | return t->id; |
| 280 | } |
| 281 | |
| 282 | |
| 283 | struct timer_route_param { |
no test coverage detected