Lines Matching refs:oval
318 rctl_val_t *oval; in rctlsys_get() local
330 oval = kmem_cache_alloc(rctl_val_cache, KM_SLEEP); in rctlsys_get()
332 rctlsys_rblk_xfrm(oblk, NULL, oval, RBX_FROM_BLK | RBX_VAL); in rctlsys_get()
334 ret = rctl_local_get(hndl, oval, nval, curproc); in rctlsys_get()
337 kmem_cache_free(rctl_val_cache, oval); in rctlsys_get()
399 rctl_val_t *oval; in rctlsys_set() local
450 oval = kmem_cache_alloc(rctl_val_cache, KM_SLEEP); in rctlsys_set()
566 rctlsys_rblk_xfrm(oblk, NULL, oval, RBX_FROM_BLK | RBX_VAL); in rctlsys_set()
568 if (rctl_invalid_value(rde, oval)) { in rctlsys_set()
573 if (oval->rcv_privilege == RCPRIV_BASIC) { in rctlsys_set()
575 oval->rcv_action_recipient = curproc; in rctlsys_set()
576 oval->rcv_action_recip_pid = curproc->p_pid; in rctlsys_set()
579 oval->rcv_action_recipient = NULL; in rctlsys_set()
580 oval->rcv_action_recip_pid = -1; in rctlsys_set()
595 rctl_val_cmp(oval, rval1, 0) == 0) in rctlsys_set()
604 if (rctl_val_cmp(oval, rval1, 1) == 0) in rctlsys_set()
612 bcopy(rval1, oval, sizeof (rctl_val_t)); in rctlsys_set()
632 oval->rcv_privilege == RCPRIV_PRIVILEGED) && in rctlsys_set()
642 if (oval->rcv_privilege == RCPRIV_PRIVILEGED && in rctlsys_set()
655 if (oval->rcv_privilege == RCPRIV_PRIVILEGED && in rctlsys_set()
658 oval->rcv_flagaction != nval->rcv_flagaction || in rctlsys_set()
659 oval->rcv_action_signal != nval->rcv_action_signal || in rctlsys_set()
660 oval->rcv_value < nval->rcv_value)) && in rctlsys_set()
666 if (ret = rctl_local_replace(hndl, oval, nval, pp)) { in rctlsys_set()
768 kmem_cache_free(rctl_val_cache, oval); in rctlsys_set()