Lines Matching defs:blk
74 build_rctlblk(rctlblk_t *blk, int comp_num, char *component)
78 uint_t act = rctlblk_get_local_action(blk, &sig);
87 rctlblk_set_privilege(blk, RCPRIV_BASIC);
93 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED);
117 rctlblk_set_value(blk, (rctl_qty_t)val);
126 rctlblk_set_local_action(blk, 0, 0);
133 rctlblk_set_local_action(blk, act, sig);
157 rctlblk_set_local_action(blk, act, sig);
181 reinit_blk(rctlblk_t *blk, int local_action)
183 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED);
184 rctlblk_set_value(blk, 0);
185 rctlblk_set_local_flags(blk, 0);
186 rctlblk_set_local_action(blk, local_action, 0);
197 rctlblk_t *blk;
231 blk = ablk;
241 (void) pr_getrctl(Pr, ctl_name, NULL, blk, RCTL_FIRST);
247 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED);
248 rctlblk_set_value(blk, 0);
249 rctlblk_set_local_flags(blk, 0);
251 if (rctlblk_get_global_flags(blk) & RCTL_GLOBAL_DENY_ALWAYS)
256 rctlblk_set_local_action(blk, local_act, 0);
278 if (build_rctlblk(blk, component,
288 (rctlblk_get_privilege(blk) ==
292 if (rctlblk_get_privilege(blk)
296 if (rctlblk_get_privilege(blk)
306 blk = RCTLBLK_INC(ablk,
308 /* re-initialize blk */
309 reinit_blk(blk,
321 if (build_rctlblk(blk, component,
393 blk = ablk;
396 if (pr_setprojrctl(Pr, ctl_name, blk, count, flags) == -1)
402 NULL, blk, RCTL_INSERT) == -1) {
407 blk = RCTLBLK_INC(ablk, valuecount);