[PATCH RFC v0 07/12] kernel/userspace additions for addition ioctl() support for rtc

From: Bill Huey (hui)
Date: Tue Apr 12 2016 - 01:30:51 EST


Add additional ioctl() values to rtc so that it can 'admit' the calling
thread into a red-black tree for tracking, set the execution slot pattern,
support for setting whether read() will yield or block.

Signed-off-by: Bill Huey (hui) <bill.huey@xxxxxxxxx>
---
include/uapi/linux/rtc.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h
index f8c82e6..76c9254 100644
--- a/include/uapi/linux/rtc.h
+++ b/include/uapi/linux/rtc.h
@@ -94,6 +94,10 @@ struct rtc_pll_info {
#define RTC_VL_READ _IOR('p', 0x13, int) /* Voltage low detector */
#define RTC_VL_CLR _IO('p', 0x14) /* Clear voltage low information */

+#define RTC_OV_ADMIT _IOW('p', 0x15, unsigned long) /* Set test */
+#define RTC_OV_REPLEN _IOW('p', 0x16, unsigned long) /* Set test */
+#define RTC_OV_YIELD _IOW('p', 0x17, unsigned long) /* Set test */
+
/* interrupt flags */
#define RTC_IRQF 0x80 /* Any of the following is active */
#define RTC_PF 0x40 /* Periodic interrupt */
--
2.5.0