Lines Matching defs:rctl
95 #define DTD_ELEM_RCTL (const xmlChar *) "rctl"
96 #define DTD_ELEM_RCTLVALUE (const xmlChar *) "rctl-value"
213 { "rctl", DTD_ELEM_RCTL },
289 * rctl alias definitions
291 * This holds the alias, the full rctl name, the default priv value, action
292 * and lower limit. The functions that handle rctl aliases step through
294 * the rctl entry as well the limit for validation.
670 * synthetic (like the rctl ones).
4557 "An incompatible rctl already exists for this property"));
4751 * Apply the current rctl settings to the specified, running zone.
4760 struct zone_rctltab rctl;
4776 while (zonecfg_getrctlent(handle, &rctl) == Z_OK) {
4780 rname = rctl.zone_rctl_name;
4782 /* first delete all current privileged settings for this rctl */
4791 /* now set each new value for the rctl */
4792 for (valptr = rctl.zone_rctl_valptr; valptr != NULL;
7089 * Generally uninteresting rctl convenience functions.
7148 * indeed an rctl name recognized by the system.
7203 return (B_TRUE); /* not an rctl on this system */
7745 * rctl. If there are multiple existing values for one of these rctls or if
7747 * it has a different action) then we cannot treat the rctl as having an alias
7748 * so we return Z_ALIAS_DISALLOW. That means that the rctl cannot be
7749 * managed in zonecfg via an alias and that the standard rctl syntax must be
7754 * Z_ALIAS_DISALLOW - pre-existing, incompatible rctl definition
7755 * Z_NO_ENTRY - no rctl is configured for this alias
7756 * Z_OK - we got a valid rctl for the specified alias
7766 struct zone_rctlvaltab rctl;
7807 rctl.zone_rctlval_priv,
7808 sizeof (rctl.zone_rctlval_priv)) != Z_OK))
7811 rctl.zone_rctlval_limit,
7812 sizeof (rctl.zone_rctlval_limit)) != Z_OK))
7815 rctl.zone_rctlval_action,
7816 sizeof (rctl.zone_rctlval_action)) != Z_OK))
7821 if (strcmp(rctl.zone_rctlval_priv,
7823 strcmp(rctl.zone_rctlval_action,
7830 *rval = strtoull(rctl.zone_rctlval_limit, NULL, 10);
7845 * First check that we have a valid aliased rctl to remove.
7846 * This will catch an rctl entry with non-standard values or
7847 * multiple rctl values for this name. We need to ignore those
7848 * rctl entries.
7900 /* remove any pre-existing definition for this rctl */