Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/racct.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | |||||
} while (0) | } while (0) | ||||
#define RACCT_PROC_UNLOCK(p) do { \ | #define RACCT_PROC_UNLOCK(p) do { \ | ||||
if (RACCT_ENABLED()) \ | if (RACCT_ENABLED()) \ | ||||
PROC_UNLOCK(p); \ | PROC_UNLOCK(p); \ | ||||
} while (0) | } while (0) | ||||
int racct_add(struct proc *p, int resource, uint64_t amount); | int racct_add(struct proc *p, int resource, uint64_t amount); | ||||
void racct_add_cred(struct ucred *cred, int resource, uint64_t amount); | void racct_add_cred(struct ucred *cred, int resource, uint64_t amount); | ||||
int racct_add_cred_checked(struct ucred *cred, int resource, | |||||
uint64_t amount); | |||||
void racct_add_force(struct proc *p, int resource, uint64_t amount); | void racct_add_force(struct proc *p, int resource, uint64_t amount); | ||||
void racct_add_buf(struct proc *p, const struct buf *bufp, int is_write); | void racct_add_buf(struct proc *p, const struct buf *bufp, int is_write); | ||||
int racct_set(struct proc *p, int resource, uint64_t amount); | int racct_set(struct proc *p, int resource, uint64_t amount); | ||||
int racct_set_unlocked(struct proc *p, int resource, uint64_t amount); | int racct_set_unlocked(struct proc *p, int resource, uint64_t amount); | ||||
void racct_set_force(struct proc *p, int resource, uint64_t amount); | void racct_set_force(struct proc *p, int resource, uint64_t amount); | ||||
void racct_sub(struct proc *p, int resource, uint64_t amount); | void racct_sub(struct proc *p, int resource, uint64_t amount); | ||||
void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount); | void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount); | ||||
uint64_t racct_get_limit(struct proc *p, int resource); | uint64_t racct_get_limit(struct proc *p, int resource); | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |