X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-android.h;h=cdae7030e1609d02b7a7acf40377fc84eb11d57c;hb=8f6d1311afd37bf70b5b0bd7ebb0944ed9460d34;hp=1699539cad2a1a525cbec6f98f8ee449f16004af;hpb=c08ad04c17e63c275ff477b21460ed6fa3b493f9;p=fio.git diff --git a/os/os-android.h b/os/os-android.h index 1699539c..cdae7030 100644 --- a/os/os-android.h +++ b/os/os-android.h @@ -16,12 +16,14 @@ #include #include +#include "./os-linux-syscall.h" #include "binject.h" #include "../file.h" #define FIO_HAVE_DISK_UTIL #define FIO_HAVE_IOSCHED_SWITCH #define FIO_HAVE_IOPRIO +#define FIO_HAVE_IOPRIO_CLASS #define FIO_HAVE_ODIRECT #define FIO_HAVE_HUGETLB #define FIO_HAVE_BLKTRACE @@ -140,6 +142,12 @@ enum { #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) { /*