|
Revision 2413, 0.7 kB
(checked in by dhozac, 2 years ago)
|
Update kernel headers to 2.6.19-vs2.1.x-t7.
Use the headers from make headers_install to cut down on unnecessary files/content.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
#ifndef _VX_LIMIT_CMD_H |
|---|
| 2 |
#define _VX_LIMIT_CMD_H |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
#define VCMD_get_rlimit VC_CMD(RLIMIT, 1, 0) |
|---|
| 8 |
#define VCMD_set_rlimit VC_CMD(RLIMIT, 2, 0) |
|---|
| 9 |
#define VCMD_get_rlimit_mask VC_CMD(RLIMIT, 3, 0) |
|---|
| 10 |
#define VCMD_reset_minmax VC_CMD(RLIMIT, 9, 0) |
|---|
| 11 |
|
|---|
| 12 |
struct vcmd_ctx_rlimit_v0 { |
|---|
| 13 |
uint32_t id; |
|---|
| 14 |
uint64_t minimum; |
|---|
| 15 |
uint64_t softlimit; |
|---|
| 16 |
uint64_t maximum; |
|---|
| 17 |
}; |
|---|
| 18 |
|
|---|
| 19 |
struct vcmd_ctx_rlimit_mask_v0 { |
|---|
| 20 |
uint32_t minimum; |
|---|
| 21 |
uint32_t softlimit; |
|---|
| 22 |
uint32_t maximum; |
|---|
| 23 |
}; |
|---|
| 24 |
|
|---|
| 25 |
#define VCMD_rlimit_stat VC_CMD(VSTAT, 1, 0) |
|---|
| 26 |
|
|---|
| 27 |
struct vcmd_rlimit_stat_v0 { |
|---|
| 28 |
uint32_t id; |
|---|
| 29 |
uint32_t hits; |
|---|
| 30 |
uint64_t value; |
|---|
| 31 |
uint64_t minimum; |
|---|
| 32 |
uint64_t maximum; |
|---|
| 33 |
}; |
|---|
| 34 |
|
|---|
| 35 |
#define CRLIM_UNSET (0ULL) |
|---|
| 36 |
#define CRLIM_INFINITY (~0ULL) |
|---|
| 37 |
#define CRLIM_KEEP (~1ULL) |
|---|
| 38 |
|
|---|
| 39 |
#endif |
|---|