[Xenomai] [PATCH 2/3] RTDM: uapi: Define ioctl code to set an IRQ affinity.

Christoph Muellner christoph.muellner at theobroma-systems.com
Mon Oct 23 16:59:43 CEST 2017


This patch adds an ioctl code to set a GPIO IRQ's CPU affinity
to the RTDM user space API.

Signed-off-by: Christoph Muellner <christoph.muellner at theobroma-systems.com>
---
 include/rtdm/uapi/gpio.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/rtdm/uapi/gpio.h b/include/rtdm/uapi/gpio.h
index f846f48b2..efd30fd28 100644
--- a/include/rtdm/uapi/gpio.h
+++ b/include/rtdm/uapi/gpio.h
@@ -22,6 +22,7 @@
 #define GPIO_RTIOC_DIR_IN		_IO(RTDM_CLASS_GPIO, 1)
 #define GPIO_RTIOC_IRQEN		_IOW(RTDM_CLASS_GPIO, 2, int) /* GPIO trigger */
 #define GPIO_RTIOC_IRQDIS		_IO(RTDM_CLASS_GPIO, 3)
+#define GPIO_RTIOC_IRQAFF		_IOW(RTDM_CLASS_GPIO, 4, int)
 
 #define GPIO_TRIGGER_NONE		0x0 /* unspecified */
 #define GPIO_TRIGGER_EDGE_RISING	0x1
-- 
2.11.0




More information about the Xenomai mailing list