This commit was generated by cvs2svn to compensate for changes in r2826,
[util-vserver.git] / kernel / limit_def.h
1 #ifndef _VX_LIMIT_DEF_H
2 #define _VX_LIMIT_DEF_H
3
4 #include <asm/atomic.h>
5 #include <asm/resource.h>
6
7 #include "limit.h"
8
9 /* context sub struct */
10
11 struct _vx_limit {
12         atomic_t ticks;
13
14         unsigned long rlim[NUM_LIMITS];         /* Context limit */
15         unsigned long rmax[NUM_LIMITS];         /* Context maximum */
16         atomic_t rcur[NUM_LIMITS];              /* Current value */
17         atomic_t lhit[NUM_LIMITS];              /* Limit hits */
18 };
19
20
21 #endif  /* _VX_LIMIT_DEF_H */