d23f46ef8226bb60a7480b55adc92c02fc6fe2fe
[util-vserver.git] / util-vserver / kernel / limit.h
1 #ifndef _VX_LIMIT_H
2 #define _VX_LIMIT_H
3
4
5 #define VLIMIT_NSOCK    16
6 #define VLIMIT_OPENFD   17
7 #define VLIMIT_ANON     18
8 #define VLIMIT_SHMEM    19
9
10 #ifdef  __KERNEL__
11
12 struct sysinfo;
13
14 void vx_vsi_meminfo(struct sysinfo *);
15 void vx_vsi_swapinfo(struct sysinfo *);
16
17 #define VXD_RLIMIT(r,l)         (VXD_CBIT(limit, (l)) && ((r) == (l)))
18
19 #define VXD_RLIMIT_COND(r)      (VXD_CBIT(limit, (r)))
20
21 #define NUM_LIMITS      24
22
23 extern const char *vlimit_name[NUM_LIMITS];
24
25 #endif  /* __KERNEL__ */
26 #endif  /* _VX_LIMIT_H */