![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 #ifndef _UAPI_ASM_GENERIC_RESOURCE_H 0003 #define _UAPI_ASM_GENERIC_RESOURCE_H 0004 0005 /* 0006 * Resource limit IDs 0007 * 0008 * ( Compatibility detail: there are architectures that have 0009 * a different rlimit ID order in the 5-9 range and want 0010 * to keep that order for binary compatibility. The reasons 0011 * are historic and all new rlimits are identical across all 0012 * arches. If an arch has such special order for some rlimits 0013 * then it defines them prior including asm-generic/resource.h. ) 0014 */ 0015 0016 #define RLIMIT_CPU 0 /* CPU time in sec */ 0017 #define RLIMIT_FSIZE 1 /* Maximum filesize */ 0018 #define RLIMIT_DATA 2 /* max data size */ 0019 #define RLIMIT_STACK 3 /* max stack size */ 0020 #define RLIMIT_CORE 4 /* max core file size */ 0021 0022 #ifndef RLIMIT_RSS 0023 # define RLIMIT_RSS 5 /* max resident set size */ 0024 #endif 0025 0026 #ifndef RLIMIT_NPROC 0027 # define RLIMIT_NPROC 6 /* max number of processes */ 0028 #endif 0029 0030 #ifndef RLIMIT_NOFILE 0031 # define RLIMIT_NOFILE 7 /* max number of open files */ 0032 #endif 0033 0034 #ifndef RLIMIT_MEMLOCK 0035 # define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ 0036 #endif 0037 0038 #ifndef RLIMIT_AS 0039 # define RLIMIT_AS 9 /* address space limit */ 0040 #endif 0041 0042 #define RLIMIT_LOCKS 10 /* maximum file locks held */ 0043 #define RLIMIT_SIGPENDING 11 /* max number of pending signals */ 0044 #define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */ 0045 #define RLIMIT_NICE 13 /* max nice prio allowed to raise to 0046 0-39 for nice level 19 .. -20 */ 0047 #define RLIMIT_RTPRIO 14 /* maximum realtime priority */ 0048 #define RLIMIT_RTTIME 15 /* timeout for RT tasks in us */ 0049 #define RLIM_NLIMITS 16 0050 0051 /* 0052 * SuS says limits have to be unsigned. 0053 * Which makes a ton more sense anyway. 0054 * 0055 * Some architectures override this (for compatibility reasons): 0056 */ 0057 #ifndef RLIM_INFINITY 0058 # define RLIM_INFINITY (~0UL) 0059 #endif 0060 0061 0062 #endif /* _UAPI_ASM_GENERIC_RESOURCE_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |