Go to the documentation of this file.
16 #ifndef _LINUX_ANDROID_ALARM_H
17 #define _LINUX_ANDROID_ALARM_H
20 #include <linux/time.h>
48 #define ANDROID_ALARM_CLEAR(type) _IO('a', 0 | ((type) << 4))
51 #define ANDROID_ALARM_WAIT _IO('a', 1)
53 #define ALARM_IOW(c, type, size) _IOW('a', (c) | ((type) << 4), size)
55 #define ANDROID_ALARM_SET(type) ALARM_IOW(2, type, struct timespec)
56 #define ANDROID_ALARM_SET_AND_WAIT(type) ALARM_IOW(3, type, struct timespec)
57 #define ANDROID_ALARM_GET_TIME(type) ALARM_IOW(4, type, struct timespec)
58 #define ANDROID_ALARM_SET_RTC _IOW('a', 5, struct timespec)
59 #define ANDROID_ALARM_BASE_CMD(cmd) (cmd & ~(_IOC(0, 0, 0xf0, 0)))
60 #define ANDROID_ALARM_IOCTL_TO_TYPE(cmd) (_IOC_NR(cmd) >> 4)