Lines Matching defs:amount
353 * Return the amount of resource that can be allocated by 'p' before
373 * If the limit isn't exceeded, it decreases the usage amount to zero.
407 * if we changed the rule lowering the allowed amount, it could
489 * Check whether the proc 'p' can allocate 'amount' of 'resource' in addition
494 rctl_enforce(struct proc *p, int resource, uint64_t amount)
519 if (available >= (int64_t)amount) {
702 uint64_t amount = UINT64_MAX;
717 if (rule->rr_amount < amount)
718 amount = rule->rr_amount;
721 return (amount);
1316 * rules, remove ones differing only by "amount".
1478 int64_t amount;
1518 amount = rule->rr_amount;
1519 if (amount != RCTL_AMOUNT_UNDEFINED &&
1521 amount /= 1000000;
1526 amount);
1588 int64_t amount;
1598 amount = racct->r_resources[i];
1601 amount /= 1000000;
1602 sbuf_printf(sb, "%s=%jd,", rctl_resource_name(i), amount);