Lines Matching defs:rctl
89 #define DTD_ELEM_RCTL (const xmlChar *) "rctl"
90 #define DTD_ELEM_RCTLVALUE (const xmlChar *) "rctl-value"
163 * rctl alias definitions
165 * This holds the alias, the full rctl name, the default priv value, action
166 * and lower limit. The functions that handle rctl aliases step through
168 * the rctl entry as well the limit for validation.
3749 "An incompatible rctl already exists for this property"));
3928 * Apply the current rctl settings to the specified, running zone.
3937 struct zone_rctltab rctl;
3953 while (zonecfg_getrctlent(handle, &rctl) == Z_OK) {
3957 rname = rctl.zone_rctl_name;
3959 /* first delete all current privileged settings for this rctl */
3968 /* now set each new value for the rctl */
3969 for (valptr = rctl.zone_rctl_valptr; valptr != NULL;
4003 if (strcmp(nm, "rctl") == 0)
5991 * Generally uninteresting rctl convenience functions.
6050 * indeed an rctl name recognized by the system.
6105 return (B_TRUE); /* not an rctl on this system */
6629 * rctl. If there are multiple existing values for one of these rctls or if
6631 * it has a different action) then we cannot treat the rctl as having an alias
6632 * so we return Z_ALIAS_DISALLOW. That means that the rctl cannot be
6633 * managed in zonecfg via an alias and that the standard rctl syntax must be
6638 * Z_ALIAS_DISALLOW - pre-existing, incompatible rctl definition
6639 * Z_NO_ENTRY - no rctl is configured for this alias
6640 * Z_OK - we got a valid rctl for the specified alias
6649 struct zone_rctlvaltab rctl;
6690 rctl.zone_rctlval_priv,
6691 sizeof (rctl.zone_rctlval_priv)) != Z_OK))
6694 rctl.zone_rctlval_limit,
6695 sizeof (rctl.zone_rctlval_limit)) != Z_OK))
6698 rctl.zone_rctlval_action,
6699 sizeof (rctl.zone_rctlval_action)) != Z_OK))
6704 if (strcmp(rctl.zone_rctlval_priv,
6706 strcmp(rctl.zone_rctlval_action,
6713 *rval = strtoull(rctl.zone_rctlval_limit, NULL, 10);
6728 * First check that we have a valid aliased rctl to remove.
6729 * This will catch an rctl entry with non-standard values or
6730 * multiple rctl values for this name. We need to ignore those
6731 * rctl entries.
6783 /* remove any pre-existing definition for this rctl */