Lines Matching defs:hndl
436 rctl_dict_lookup_hndl(rctl_hndl_t hndl)
447 if (rde->rcd_id == hndl) {
976 rctl_set_insert(rctl_set_t *set, rctl_hndl_t hndl, rctl_t *rctl)
978 uint_t index = hndl % rctl_set_size;
990 if (hndl < set->rcs_ctls[index]->rc_id) {
1002 if (next_ctl->rc_id > hndl) {
1448 rctl_set_find(rctl_set_t *set, rctl_hndl_t hndl, rctl_t **rctl)
1450 uint_t index = hndl % rctl_set_size;
1457 if (curr_ctl->rc_id == hndl) {
1483 rctl_enforced_value(rctl_hndl_t hndl, rctl_set_t *rset, struct proc *p)
1490 if (rctl_set_find(rset, hndl, &rctl) == -1)
1491 panic("unknown resource control handle %d requested", hndl);
1560 rctl_local_op(rctl_hndl_t hndl, rctl_val_t *oval, rctl_val_t *nval,
1568 rctl_dict_entry_t *rde = rctl_dict_lookup_hndl(hndl);
1583 /* using rctl's hndl, get rctl from local set */
1584 if (rctl_set_find(rset, hndl, &rctl) == -1) {
1589 ret = cbop(hndl, p, &e, rctl, oval, nval);
1597 rctl_local_get_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e,
1632 rctl_local_get(rctl_hndl_t hndl, rctl_val_t *oval, rctl_val_t *nval,
1635 return (rctl_local_op(hndl, oval, nval, rctl_local_get_cb, p));
1640 rctl_local_delete_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e,
1670 rctl_local_delete(rctl_hndl_t hndl, rctl_val_t *val, struct proc *p)
1672 return (rctl_local_op(hndl, NULL, val, rctl_local_delete_cb, p));
1689 rctl_local_insert_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e,
1720 rctl_local_insert(rctl_hndl_t hndl, rctl_val_t *val, struct proc *p)
1722 return (rctl_local_op(hndl, NULL, val, rctl_local_insert_cb, p));
1743 rctl_local_insert_all_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e,
1863 rctl_local_insert_all(rctl_hndl_t hndl, rctl_val_t *new_values,
1866 return (rctl_local_op(hndl, new_values, alloc_values,
1888 rctl_local_replace_all_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e,
1971 rctl_local_replace_all(rctl_hndl_t hndl, rctl_val_t *new_values,
1974 return (rctl_local_op(hndl, new_values, alloc_values,
1979 rctl_local_replace_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e,
2004 if (ret = rctl_local_insert_cb(hndl, p, e, rctl, NULL, nval))
2007 ret = rctl_local_delete_cb(hndl, p, e, rctl, NULL, oval);
2022 rctl_local_replace(rctl_hndl_t hndl, rctl_val_t *oval, rctl_val_t *nval,
2025 return (rctl_local_op(hndl, oval, nval, rctl_local_replace_cb, p));
2674 rctl_action(rctl_hndl_t hndl, rctl_set_t *rset, struct proc *p, uint_t safety)
2676 return (rctl_action_entity(hndl, rset, p, NULL, safety));
2680 rctl_action_entity(rctl_hndl_t hndl, rctl_set_t *rset, struct proc *p,
2689 if (rctl_set_find(rset, hndl, &lrctl) == -1) {