aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mt_sched_ioctl.h
diff options
context:
space:
mode:
authorMeizu OpenSource <patchwork@meizu.com>2016-08-15 10:19:42 +0800
committerMeizu OpenSource <patchwork@meizu.com>2016-08-15 10:19:42 +0800
commitd2e1446d81725c351dc73a03b397ce043fb18452 (patch)
tree4dbc616b7f92aea39cd697a9084205ddb805e344 /include/linux/mt_sched_ioctl.h
downloadandroid_kernel_m2note-d2e1446d81725c351dc73a03b397ce043fb18452.tar.gz
first commit
Diffstat (limited to 'include/linux/mt_sched_ioctl.h')
-rw-r--r--include/linux/mt_sched_ioctl.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/mt_sched_ioctl.h b/include/linux/mt_sched_ioctl.h
new file mode 100644
index 000000000..391966e7a
--- /dev/null
+++ b/include/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