Lines Matching defs:rctl

28 #include <rctl.h>
111 /* global flags of rctl name passed to -n */
115 /* appropriate scaling variables determined by rctl unit type */
155 static int match_rctl(struct ps_prochandle *Pr, rctlblk_t **rctl, char *name,
158 static int match_rctl_blk(rctlblk_t *rctl, char *valuestringin,
178 " -t privilege level of rctl values to get\n"
185 " -t privilege level of rctl value to set/replace/delete/modify\n"
188 " -r replace first rctl value of matching privilege\n"
189 " -x delete first rctl value of matching privilege, value, and \n"
191 " -v value of rctl to set/replace/delete/modify\n"
192 " -p recipient pid of rctl to set/replace/delete/modify\n"
193 " -e enable action of first rctl value of matching privilege,\n"
195 " -d disable action of first rctl value of matching privilege,\n"
261 case 'n': /* name of rctl */
279 case 't': /* rctl type */
379 /* Specifying a recipient pid on a non-basic rctl makes no sense */
381 warn(gettext("option -p not allowed on non-basic rctl"));
385 /* Specifying a recipient pid on a privileged rctl makes no sense */
388 warn(gettext("option -p not allowed with privileged rctl"));
402 /* get rctl global flags to determine if actions are valid */
415 /* get system rctl to get global flags and max value */
444 /* figure out the correct scale and unit for this rctl */
555 warn(gettext("basic values not allowed on rctl %s"),
560 /* validate that actions are appropriate for given rctl */
565 warn(gettext("unable to enable deny on rctl with "
574 warn(gettext("unable to disable deny on rctl with "
583 warn(gettext("unable to enable signal on rctl with "
591 * default privilege to basic if this is a seting an rctl
601 * project or zone rctl
613 "replacing task or project rctl"));
627 /* getting/setting process rctl on task or project is error */
632 warn(gettext("cannot get/set process rctl on task "
637 /* getting/setting task rctl on project is error */
641 warn(gettext("cannot get/set task rctl on project"));
686 * -p defaults to arg if basic and collective rctl
807 * match rctl for deletion by privilege and
838 * check if new rctl already exists
853 * If rctl already exists, and it does not
867 /* create new rctl */
910 /* if no match, just set new rctl */
1449 /* get the global flags the first rctl only */
1466 /* print the current usage for the rctl if available */
1568 * find the first rctl with matching name, value, priv, and recipient pid
1571 match_rctl(struct ps_prochandle *Pr, rctlblk_t **rctl, char *name,
1578 *rctl = NULL;
1599 *rctl = next;
1615 *rctl = next;
1632 * Must supply a valid rctl, value, privilege, and pid to match on.
1638 * Returns 1 if a matching rctl given matches the parameters specified, and
1644 match_rctl_blk(rctlblk_t *rctl, char *valuestringin,
1655 value = rctlblk_get_value(rctl);
1656 priv = rctlblk_get_privilege(rctl);
1657 pid = rctlblk_get_recipient_pid(rctl);
1798 * If this is a zone.* rctl, it requires more than
1836 * allows us to replace rctl value blocks which match in