Make I/O priority option generic for non-Linux environment [1/2]
[fio.git] / os / os-linux.h
index b36d33c9804cc60f1c89699c6bd1f41ca4d22e50..a410497c25bf4636a42be935323d536b17bf1c72 100644 (file)
@@ -96,6 +96,12 @@ enum {
 #define IOPRIO_BITS            16
 #define IOPRIO_CLASS_SHIFT     13
 
 #define IOPRIO_BITS            16
 #define IOPRIO_CLASS_SHIFT     13
 
+#define IOPRIO_MIN_PRIO                0       /* highest priority */
+#define IOPRIO_MAX_PRIO                7       /* lowest priority */
+
+#define IOPRIO_MIN_PRIO_CLASS  0
+#define IOPRIO_MAX_PRIO_CLASS  3
+
 static inline int ioprio_set(int which, int who, int ioprio_class, int ioprio)
 {
        /*
 static inline int ioprio_set(int which, int who, int ioprio_class, int ioprio)
 {
        /*