Lines Matching refs:oval
317 rctl_val_t *oval; in rctlsys_get() local
329 oval = kmem_cache_alloc(rctl_val_cache, KM_SLEEP); in rctlsys_get()
331 rctlsys_rblk_xfrm(oblk, NULL, oval, RBX_FROM_BLK | RBX_VAL); in rctlsys_get()
333 ret = rctl_local_get(hndl, oval, nval, curproc); in rctlsys_get()
336 kmem_cache_free(rctl_val_cache, oval); in rctlsys_get()
398 rctl_val_t *oval; in rctlsys_set() local
449 oval = kmem_cache_alloc(rctl_val_cache, KM_SLEEP); in rctlsys_set()
565 rctlsys_rblk_xfrm(oblk, NULL, oval, RBX_FROM_BLK | RBX_VAL); in rctlsys_set()
567 if (rctl_invalid_value(rde, oval)) { in rctlsys_set()
572 if (oval->rcv_privilege == RCPRIV_BASIC) { in rctlsys_set()
574 oval->rcv_action_recipient = curproc; in rctlsys_set()
575 oval->rcv_action_recip_pid = curproc->p_pid; in rctlsys_set()
578 oval->rcv_action_recipient = NULL; in rctlsys_set()
579 oval->rcv_action_recip_pid = -1; in rctlsys_set()
594 rctl_val_cmp(oval, rval1, 0) == 0) in rctlsys_set()
603 if (rctl_val_cmp(oval, rval1, 1) == 0) in rctlsys_set()
611 bcopy(rval1, oval, sizeof (rctl_val_t)); in rctlsys_set()
631 oval->rcv_privilege == RCPRIV_PRIVILEGED) && in rctlsys_set()
641 if (oval->rcv_privilege == RCPRIV_PRIVILEGED && in rctlsys_set()
654 if (oval->rcv_privilege == RCPRIV_PRIVILEGED && in rctlsys_set()
657 oval->rcv_flagaction != nval->rcv_flagaction || in rctlsys_set()
658 oval->rcv_action_signal != nval->rcv_action_signal || in rctlsys_set()
659 oval->rcv_value < nval->rcv_value)) && in rctlsys_set()
665 if (ret = rctl_local_replace(hndl, oval, nval, pp)) { in rctlsys_set()
767 kmem_cache_free(rctl_val_cache, oval); in rctlsys_set()