Lines Matching +refs:val +refs:current

2141 		 * the current net element.
2166 * The current net element matches the query. Select it if
3415 xmlNodePtr cur, val;
3434 for (val = cur->xmlChildrenNode; val != NULL;
3435 val = val->next) {
3440 if ((fetchprop(val, DTD_ATTR_PRIV,
3445 if ((fetchprop(val, DTD_ATTR_LIMIT,
3450 if ((fetchprop(val, DTD_ATTR_ACTION,
3928 * Apply the current rctl settings to the specified, running zone.
3959 /* first delete all current privileged settings for this rctl */
4092 long double val;
4096 if ((val = strtold(str, &unitp)) < 0)
4123 *bytes = (uint64_t)(val * scale);
4190 pool_value_t *val;
4201 if ((val = pool_value_alloc()) == NULL)
4205 pool_value_set_uint64(val, (uint64_t)max);
4207 if (pool_put_property(pconf, elem, "pset.max", val) != PO_SUCCESS) {
4208 pool_value_free(val);
4213 pool_value_set_uint64(val, (uint64_t)min);
4215 if (pool_put_property(pconf, elem, "pset.min", val) != PO_SUCCESS) {
4216 pool_value_free(val);
4220 pool_value_free(val);
4246 pool_value_t *val;
4253 if ((val = pool_value_alloc()) == NULL) {
4258 pool_value_set_int64(val,
4261 if (pool_put_property(pconf, elem, "pool.importance", val)
4264 pool_value_free(val);
4268 pool_value_free(val);
4979 xmlNodePtr cur, val;
5004 for (val = cur->xmlChildrenNode; val != NULL; val = val->next) {
5009 if (fetchprop(val, DTD_ATTR_PRIV, valptr->zone_rctlval_priv,
5012 if (fetchprop(val, DTD_ATTR_LIMIT, valptr->zone_rctlval_limit,
5015 if (fetchprop(val, DTD_ATTR_ACTION, valptr->zone_rctlval_action,
5335 * current zone's brand.
6093 rctlblk_t *current, *next;
6103 current = alloca(rctlblk_size());
6104 if (getrctl(name, NULL, current, RCTL_FIRST) != 0)
6107 * Make sure the proposed value isn't greater than the current system
6111 while (rctlblk_get_privilege(current) != RCPRIV_SYSTEM) {
6114 if (getrctl(name, current, next, RCTL_NEXT) != 0)
6116 tmp = current;
6117 current = next;
6120 if (limit > rctlblk_get_value(current))
6126 global_flags = rctlblk_get_global_flags(current);
6647 xmlNodePtr cur, val;
6679 for (val = cur->xmlChildrenNode; val != NULL;
6680 val = val->next) {
6689 if ((fetchprop(val, DTD_ATTR_PRIV,
6693 if ((fetchprop(val, DTD_ATTR_LIMIT,
6697 if ((fetchprop(val, DTD_ATTR_ACTION,
6724 uint64_t val;
6733 if (zonecfg_get_aliased_rctl(handle, name, &val) != Z_OK)
6765 zonecfg_set_aliased_rctl(zone_dochandle_t handle, char *name, uint64_t val)
6794 (void) snprintf(buf, sizeof (buf), "%llu", (long long)val);