diff options
author | blueness <basile@opensource.dyc.edu> | 2014-08-06 06:36:03 -0400 |
---|---|---|
committer | blueness <basile@opensource.dyc.edu> | 2014-08-06 06:36:03 -0400 |
commit | cb2823bc026644ae56c9d257591d28a4f3110f4b (patch) | |
tree | 28cdd75fec8c6c6a2cf69c9668add048c10370f8 /src/shared/ioprio.h | |
parent | 4b8733ffe9c0fe8e5a527186d323dab93e43fb37 (diff) | |
parent | b1ac60946d1625e14029ea9b7fa3aa4c06e0795f (diff) |
Merge pull request #96 from gentoo/refactor-shared
src/shared: refactor shared code
Diffstat (limited to 'src/shared/ioprio.h')
-rw-r--r-- | src/shared/ioprio.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/shared/ioprio.h b/src/shared/ioprio.h new file mode 100644 index 0000000000..950e59b237 --- /dev/null +++ b/src/shared/ioprio.h @@ -0,0 +1,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 |