1
2 #ifndef _UAPI_LINUX_RESOURCE_H
3 #define _UAPI_LINUX_RESOURCE_H
4
5 #include <linux/time.h>
6 #include <linux/types.h>
7
8
9
10
11
12
13
14
15
16
17
18
19 #define RUSAGE_SELF 0
20 #define RUSAGE_CHILDREN (-1)
21 #define RUSAGE_BOTH (-2)
22 #define RUSAGE_THREAD 1
23
24 struct rusage {
25 struct timeval ru_utime;
26 struct timeval ru_stime;
27 __kernel_long_t ru_maxrss;
28 __kernel_long_t ru_ixrss;
29 __kernel_long_t ru_idrss;
30 __kernel_long_t ru_isrss;
31 __kernel_long_t ru_minflt;
32 __kernel_long_t ru_majflt;
33 __kernel_long_t ru_nswap;
34 __kernel_long_t ru_inblock;
35 __kernel_long_t ru_oublock;
36 __kernel_long_t ru_msgsnd;
37 __kernel_long_t ru_msgrcv;
38 __kernel_long_t ru_nsignals;
39 __kernel_long_t ru_nvcsw;
40 __kernel_long_t ru_nivcsw;
41 };
42
43 struct rlimit {
44 __kernel_ulong_t rlim_cur;
45 __kernel_ulong_t rlim_max;
46 };
47
48 #define RLIM64_INFINITY (~0ULL)
49
50 struct rlimit64 {
51 __u64 rlim_cur;
52 __u64 rlim_max;
53 };
54
55 #define PRIO_MIN (-20)
56 #define PRIO_MAX 20
57
58 #define PRIO_PROCESS 0
59 #define PRIO_PGRP 1
60 #define PRIO_USER 2
61
62
63
64
65
66 #define _STK_LIM (8*1024*1024)
67
68
69
70
71
72 #define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
73
74
75
76
77
78 #include <asm/resource.h>
79
80
81 #endif