Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_rctl.c
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | static struct dict actionnames[] = { | ||||
{ "sigthr", RCTL_ACTION_SIGTHR }, | { "sigthr", RCTL_ACTION_SIGTHR }, | ||||
{ "deny", RCTL_ACTION_DENY }, | { "deny", RCTL_ACTION_DENY }, | ||||
{ "log", RCTL_ACTION_LOG }, | { "log", RCTL_ACTION_LOG }, | ||||
{ "devctl", RCTL_ACTION_DEVCTL }, | { "devctl", RCTL_ACTION_DEVCTL }, | ||||
{ "throttle", RCTL_ACTION_THROTTLE }, | { "throttle", RCTL_ACTION_THROTTLE }, | ||||
{ NULL, -1 }}; | { NULL, -1 }}; | ||||
static void rctl_init(void); | static void rctl_init(void); | ||||
SYSINIT(rctl, SI_SUB_RACCT, SI_ORDER_FIRST, rctl_init, NULL); | SYSINIT(rctl, SI_SUB_RACCT, SI_ORDER_FIRST, rctl_init); | ||||
static uma_zone_t rctl_rule_zone; | static uma_zone_t rctl_rule_zone; | ||||
static uma_zone_t rctl_rule_link_zone; | static uma_zone_t rctl_rule_link_zone; | ||||
static int rctl_rule_fully_specified(const struct rctl_rule *rule); | static int rctl_rule_fully_specified(const struct rctl_rule *rule); | ||||
static void rctl_rule_to_sbuf(struct sbuf *sb, const struct rctl_rule *rule); | static void rctl_rule_to_sbuf(struct sbuf *sb, const struct rctl_rule *rule); | ||||
static MALLOC_DEFINE(M_RCTL, "rctl", "Resource Limits"); | static MALLOC_DEFINE(M_RCTL, "rctl", "Resource Limits"); | ||||
▲ Show 20 Lines • Show All 2,022 Lines • Show Last 20 Lines |