summaryrefslogtreecommitdiff
path: root/src/libudev/ioprio.h
blob: 950e59b23742daa6c9fd7e6dcff68e59ee603330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef IOPRIO_H
#define IOPRIO_H

/* This is minimal version of Linux' linux/ioprio.h header file, which
 * is licensed GPL2 */

/*
 * These are the io priority groups as implemented by CFQ. RT is the realtime
 * class, it always gets premium service. BE is the best-effort scheduling
 * class, the default for any process. IDLE is the idle scheduling class, it
 * is only served when no one else is using the disk.
 */
enum {
        IOPRIO_CLASS_NONE,
        IOPRIO_CLASS_RT,
        IOPRIO_CLASS_BE,
        IOPRIO_CLASS_IDLE,
};

#endif