Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/racct.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
#define RACCT_IN_MILLIONS 0x01 | #define RACCT_IN_MILLIONS 0x01 | ||||
#define RACCT_RECLAIMABLE 0x02 | #define RACCT_RECLAIMABLE 0x02 | ||||
#define RACCT_INHERITABLE 0x04 | #define RACCT_INHERITABLE 0x04 | ||||
#define RACCT_DENIABLE 0x08 | #define RACCT_DENIABLE 0x08 | ||||
#define RACCT_SLOPPY 0x10 | #define RACCT_SLOPPY 0x10 | ||||
#define RACCT_DECAYING 0x20 | #define RACCT_DECAYING 0x20 | ||||
extern int racct_types[]; | extern int racct_types[]; | ||||
extern int racct_enable; | |||||
#define ASSERT_RACCT_ENABLED() KASSERT(racct_enable, \ | |||||
("%s called with !racct_enable", __func__)) | |||||
/* | /* | ||||
* Amount stored in c_resources[] is 10**6 times bigger than what's | * Amount stored in c_resources[] is 10**6 times bigger than what's | ||||
* visible to the userland. It gets fixed up when retrieving resource | * visible to the userland. It gets fixed up when retrieving resource | ||||
* usage or adding rules. | * usage or adding rules. | ||||
*/ | */ | ||||
#define RACCT_IS_IN_MILLIONS(X) (racct_types[X] & RACCT_IN_MILLIONS) | #define RACCT_IS_IN_MILLIONS(X) (racct_types[X] & RACCT_IN_MILLIONS) | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |