2 * timer_delete.c - delete a per-process timer.
8 #include <sys/syscall.h>
10 #include "kernel-posix-timers.h"
12 #ifdef __NR_timer_delete
14 #define __NR___syscall_timer_delete __NR_timer_delete
15 static __inline__
_syscall1(int, __syscall_timer_delete
, kernel_timer_t
, ktimerid
);
17 /* Delete a per-process timer */
18 int timer_delete(timer_t timerid
)
21 struct timer
*kt
= (struct timer
*)timerid
;
23 /* Delete the kernel timer object */
24 res
= __syscall_timer_delete(kt
->ktimerid
);
26 free(kt
); /* Free the memory */