Lines Matching defs:hndl

95 _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok,
104 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) {
110 miscstat = hndl->p_obj_iter(hndl->proc_p, per_loadobj, hndl);
119 if ((hndl->mode == INDIRECT_MODE) ||
120 (hndl->mode == INTERNAL_MODE))
123 assert(hndl->mode == DIRECT_MODE);
144 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) {
159 for (cur_obj = hndl->objlist; cur_obj;
175 _tnfctl_find_all_probes(tnfctl_handle_t *hndl)
183 cur_obj = hndl->objlist;
194 prexstat = unlink_targ_obj_probes(hndl, cur_obj);
202 hndl->objlist = cur_obj;
211 prexstat = get_num_probes(hndl, cur_obj, &num_probes);
220 prexstat = read_probes_in_obj(hndl, cur_obj,
221 num_probes, hndl->num_probes);
224 cur_obj->min_probe_num = hndl->num_probes;
226 hndl->num_probes += num_probes;
228 prexstat = link_targ_obj_probes(hndl, cur_obj);
238 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) {
247 if (saw_new_probes && hndl->create_func) {
248 for (cur_obj = hndl->objlist; cur_obj;
258 hndl->create_func(hndl, probe_handle);
270 _tnfctl_free_objs_and_probes(tnfctl_handle_t *hndl)
275 obj = hndl->objlist;
282 hndl->objlist = NULL;
316 _tnfctl_probes_traverse(tnfctl_handle_t *hndl,
325 LOCK_SYNC(hndl, prexstat, release_lock);
327 for (obj = hndl->objlist; obj; obj = obj->next) {
329 prexstat = (*func_p) (hndl, &(obj->probes[j]),
333 UNLOCK(hndl, release_lock);
340 UNLOCK(hndl, release_lock);
352 tnfctl_handle_t *hndl = cd;
355 if (entry_p = loadobj_find(hndl, obj)) {
391 if (hndl->objlist == NULL) {
392 hndl->objlist = entry_p;
395 next_p = hndl->objlist;
411 loadobj_find(tnfctl_handle_t *hndl, const tnfctl_ind_obj_info_t *this_obj)
415 for (obj = hndl->objlist; obj; obj = obj->next) {
426 get_num_probes(tnfctl_handle_t *hndl, objlist_t *obj, int *num_probes)
458 read_probes_in_obj(tnfctl_handle_t *hndl, objlist_t *obj, ulong_t num_probes,
467 largs2.la_hndl = hndl;
514 tnfctl_handle_t *hndl = largs2_p->la_hndl;
519 assert((hndl->mode == INTERNAL_MODE) ?
533 miscstat = hndl->p_read(hndl->proc_p, addr,
547 prexstat = _tnfctl_readstr_targ(hndl, attrs, &prbctl_p->attr_string);
566 prbctl_p->probe_handle->next = hndl->probe_handle_list_head;
567 hndl->probe_handle_list_head = prbctl_p->probe_handle;
577 (tnf_probe_func_t) hndl->endfunc;
579 (tnf_probe_func_t) hndl->commitfunc;
581 (tnf_probe_alloc_func_t) hndl->allocfunc;
587 miscstat = hndl->p_write(hndl->proc_p, addr,
606 link_targ_obj_probes(tnfctl_handle_t *hndl, objlist_t *cur)
617 cur_tmp = hndl->objlist;
638 miscstat = hndl->p_write(hndl->proc_p, probe_p->addr +
648 next_addr = hndl->probelist_head;
657 miscstat = hndl->p_write(hndl->proc_p, next_addr,
671 miscstat = hndl->p_write(hndl->proc_p, probe_p->addr +
684 unlink_targ_obj_probes(tnfctl_handle_t *hndl, objlist_t *cur)
694 cur_tmp = hndl->objlist;
719 next_addr = hndl->probelist_head;
728 miscstat = hndl->p_write(hndl->proc_p, next_addr,
740 _tnfctl_flush_a_probe(tnfctl_handle_t *hndl, prbctlref_t *ref_p, size_t offset,
756 if (hndl->mode == KERNEL_MODE) {
757 prexstat = _tnfctl_prbk_flush(hndl, ref_p);
761 miscstat = hndl->p_write(hndl->proc_p,