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