Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / platforms / android-18 / arch-arm / usr / include / linux / ioprio.h
bloba0a5d486240da353e8e275546cf9322388490832
1 /****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef IOPRIO_H
13 #define IOPRIO_H
15 #include <linux/sched.h>
17 #define IOPRIO_BITS (16)
18 #define IOPRIO_CLASS_SHIFT (13)
19 #define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
21 #define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)
22 #define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK)
23 #define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)
25 #define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)
27 enum {
28 IOPRIO_CLASS_NONE,
29 IOPRIO_CLASS_RT,
30 IOPRIO_CLASS_BE,
31 IOPRIO_CLASS_IDLE,
34 #define IOPRIO_BE_NR (8)
36 enum {
37 IOPRIO_WHO_PROCESS = 1,
38 IOPRIO_WHO_PGRP,
39 IOPRIO_WHO_USER,
42 #define IOPRIO_NORM (4)
44 #endif