aboutsummaryrefslogtreecommitdiff
path: root/kernel-headers/linux/mt_sched_ioctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-headers/linux/mt_sched_ioctl.h')
-rw-r--r--kernel-headers/linux/mt_sched_ioctl.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel-headers/linux/mt_sched_ioctl.h b/kernel-headers/linux/mt_sched_ioctl.h
new file mode 100644
index 0000000..580caac
--- /dev/null
+++ b/kernel-headers/linux/mt_sched_ioctl.h
@@ -0,0 +1,17 @@
+#ifndef _MT_SCHED_IOCTL_H
+#define _MT_SCHED_IOCTL_H
+
+struct ioctl_arg {
+ pid_t pid;
+ unsigned int len;
+ unsigned long *mask;
+ unsigned long *mt_mask;
+};
+
+#define IOC_MAGIC '\x66'
+
+#define IOCTL_SETAFFINITY _IOW(IOC_MAGIC, 0, struct ioctl_arg)
+#define IOCTL_EXITAFFINITY _IOW(IOC_MAGIC, 1, pid_t)
+#define IOCTL_GETAFFINITY _IOR(IOC_MAGIC, 2, struct ioctl_arg)
+
+#endif \ No newline at end of file