summaryrefslogtreecommitdiff
path: root/src/basic/ioprio.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-06-22 13:38:31 +0200
committerMichael Biebl <biebl@debian.org>2018-06-22 13:38:31 +0200
commitb012e92123bdc9fa10c2f079ec5bd9313b23e21a (patch)
tree94b74f04796e0da187092db7c2487aaf30f0faf1 /src/basic/ioprio.h
parent98393f852f2f66a74f7370aa63c07b26d610343c (diff)
downloadsystemd-b012e92123bdc9fa10c2f079ec5bd9313b23e21a.tar.gz
New upstream version 239
Diffstat (limited to 'src/basic/ioprio.h')
-rw-r--r--src/basic/ioprio.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/basic/ioprio.h b/src/basic/ioprio.h
index d8bb6eb497..3fb168dafe 100644
--- a/src/basic/ioprio.h
+++ b/src/basic/ioprio.h
@@ -10,8 +10,9 @@
/*
* Gives us 8 prio classes with 13-bits of data for each class
*/
-#define IOPRIO_BITS (16)
-#define IOPRIO_CLASS_SHIFT (13)
+#define IOPRIO_BITS 16
+#define IOPRIO_N_CLASSES 8
+#define IOPRIO_CLASS_SHIFT 13
#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
#define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)