Home
last modified time | relevance | path

Searched refs:hndl (Results 1 – 25 of 44) sorted by relevance

12

/titanic_41/usr/src/lib/libtnfctl/
H A Dutil.c81 static tnfctl_errcode_t find_test_func(tnfctl_handle_t *hndl);
82 static tnfctl_errcode_t find_target_syms(tnfctl_handle_t *hndl);
83 static tnfctl_errcode_t find_trace_file_info(tnfctl_handle_t *hndl);
84 static tnfctl_errcode_t check_trace_error(tnfctl_handle_t *hndl);
93 _tnfctl_refresh_process(tnfctl_handle_t *hndl, boolean_t *lmap_ok, in _tnfctl_refresh_process() argument
99 assert(hndl->mode != KERNEL_MODE); in _tnfctl_refresh_process()
102 LOCK(hndl, prexstat, release_lock); in _tnfctl_refresh_process()
104 prexstat = check_trace_error(hndl); in _tnfctl_refresh_process()
112 prexstat = _tnfctl_lmap_update(hndl, lmap_ok, dl_evt); in _tnfctl_refresh_process()
117 prexstat = find_test_func(hndl); in _tnfctl_refresh_process()
[all …]
H A Dprobes_ext.c60 tnfctl_register_funcs(tnfctl_handle_t *hndl, in tnfctl_register_funcs() argument
66 if (hndl->destroy_func) { in tnfctl_register_funcs()
72 prexstat = _tnfctl_probes_traverse(hndl, in tnfctl_register_funcs()
79 hndl->create_func = create_func; in tnfctl_register_funcs()
80 hndl->destroy_func = destroy_func; in tnfctl_register_funcs()
84 prexstat = _tnfctl_probes_traverse(hndl, in tnfctl_register_funcs()
94 _tnfctl_destructor_wrapper(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd) in _tnfctl_destructor_wrapper() argument
96 assert(hndl->destroy_func); in _tnfctl_destructor_wrapper()
97 hndl->destroy_func(probe->probe_handle->client_registered_data); in _tnfctl_destructor_wrapper()
103 _tnfctl_creator_wrapper(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd) in _tnfctl_creator_wrapper() argument
[all …]
H A Dprobes.c95 _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok, in _tnfctl_lmap_update() argument
104 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) { in _tnfctl_lmap_update()
110 miscstat = hndl->p_obj_iter(hndl->proc_p, per_loadobj, hndl); in _tnfctl_lmap_update()
119 if ((hndl->mode == INDIRECT_MODE) || in _tnfctl_lmap_update()
120 (hndl->mode == INTERNAL_MODE)) in _tnfctl_lmap_update()
123 assert(hndl->mode == DIRECT_MODE); in _tnfctl_lmap_update()
144 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) { in _tnfctl_lmap_update()
159 for (cur_obj = hndl->objlist; cur_obj; in _tnfctl_lmap_update()
175 _tnfctl_find_all_probes(tnfctl_handle_t *hndl) in _tnfctl_find_all_probes() argument
183 cur_obj = hndl->objlist; in _tnfctl_find_all_probes()
[all …]
H A Dtnfctl_int.h229 tnfctl_errcode_t _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok,
236 tnfctl_errcode_t _tnfctl_set_state(tnfctl_handle_t *hndl);
237 tnfctl_errcode_t _tnfctl_create_tracefile(tnfctl_handle_t *hndl,
241 tnfctl_errcode_t _tnfctl_find_all_probes(tnfctl_handle_t *hndl);
242 tnfctl_errcode_t _tnfctl_probes_traverse(tnfctl_handle_t *hndl,
244 tnfctl_errcode_t _tnfctl_flush_a_probe(tnfctl_handle_t *hndl,
248 tnfctl_errcode_t _tnfctl_comb_build(tnfctl_handle_t *hndl, comb_op_t op,
250 tnfctl_errcode_t _tnfctl_comb_decode(tnfctl_handle_t *hndl, uintptr_t addr,
254 tnfctl_errcode_t _tnfctl_targmem_alloc(tnfctl_handle_t *hndl, size_t size,
265 tnfctl_errcode_t _tnfctl_readstr_targ(tnfctl_handle_t *hndl, uintptr_t addr,
[all …]
H A Dchecklib.c43 tnfctl_check_libs(tnfctl_handle_t *hndl) in tnfctl_check_libs() argument
49 if (hndl->mode == KERNEL_MODE) { in tnfctl_check_libs()
50 prexstat = _tnfctl_refresh_kernel(hndl); in tnfctl_check_libs()
57 prexstat = _tnfctl_refresh_process(hndl, &lmap_ok, &dl_evt); in tnfctl_check_libs()
83 _tnfctl_lock_libs(tnfctl_handle_t *hndl, boolean_t *release_lock) in _tnfctl_lock_libs() argument
93 assert(hndl->mode == INTERNAL_MODE); in _tnfctl_lock_libs()
95 if (hndl->in_objlist == B_TRUE) { in _tnfctl_lock_libs()
106 hndl->in_objlist = B_TRUE; in _tnfctl_lock_libs()
115 _tnfctl_unlock_libs(tnfctl_handle_t *hndl, boolean_t release_lock) in _tnfctl_unlock_libs() argument
125 assert(hndl->mode == INTERNAL_MODE); in _tnfctl_unlock_libs()
[all …]
H A Dcontinue.c40 static tnfctl_errcode_t _tnfctl_continue(tnfctl_handle_t *hndl,
42 static tnfctl_errcode_t enable_target_state(tnfctl_handle_t *hndl,
44 static tnfctl_errcode_t disable_target_state(tnfctl_handle_t *hndl);
52 tnfctl_continue(tnfctl_handle_t *hndl, tnfctl_event_t *evt, in tnfctl_continue() argument
67 if (hndl->mode != DIRECT_MODE) in tnfctl_continue()
70 proc_p = hndl->proc_p; in tnfctl_continue()
96 prexstat = _tnfctl_continue(hndl, &my_evt, &oldmask, in tnfctl_continue()
108 _tnfctl_free_objs_and_probes(hndl); in tnfctl_continue()
147 prexstat = _tnfctl_refresh_process(hndl, &lmapok, &dl_evt); in tnfctl_continue()
168 _tnfctl_continue(tnfctl_handle_t *hndl, tnfctl_event_t *evt, sigset_t *oldmask, in _tnfctl_continue() argument
[all …]
H A Dtargmem.c46 _tnfctl_targmem_alloc(tnfctl_handle_t *hndl, size_t size, uintptr_t *addr_p) in _tnfctl_targmem_alloc() argument
51 assert(hndl->memseg_p != NULL); in _tnfctl_targmem_alloc()
55 miscstat = hndl->p_read(hndl->proc_p, hndl->memseg_p, &memseg, in _tnfctl_targmem_alloc()
64 miscstat = hndl->p_write(hndl->proc_p, hndl->memseg_p, in _tnfctl_targmem_alloc()
H A Dcomb.c103 static tnfctl_errcode_t decode(tnfctl_handle_t *hndl, uintptr_t addr,
105 static boolean_t find(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down,
107 static tnfctl_errcode_t build(tnfctl_handle_t *hndl, comb_op_t op,
109 static tnfctl_errcode_t add(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down,
113 static tnfctl_errcode_t iscomb(tnfctl_handle_t *hndl, uintptr_t addr,
115 static tnfctl_errcode_t findname(tnfctl_handle_t *hndl, uintptr_t addr,
128 _tnfctl_comb_build(tnfctl_handle_t *hndl, comb_op_t op, in _tnfctl_comb_build() argument
138 if (find(hndl, op, down, next, comb_p)) { in _tnfctl_comb_build()
146 prexstat = build(hndl, op, down, next, comb_p); in _tnfctl_comb_build()
162 _tnfctl_comb_decode(tnfctl_handle_t *hndl, uintptr_t addr, char ***func_names, in _tnfctl_comb_decode() argument
[all …]
H A Dkernel_int.c75 static tnfctl_errcode_t alloc_probe_space(tnfctl_handle_t *hndl, int maxprobe);
349 _tnfctl_prbk_flush(tnfctl_handle_t *hndl, prbctlref_t *p) in _tnfctl_prbk_flush() argument
356 if (ioctl(hndl->kfd, TIFIOCSPROBEVALS, &probebuf) < 0) in _tnfctl_prbk_flush()
365 _tnfctl_refresh_kernel(tnfctl_handle_t *hndl) in _tnfctl_refresh_kernel() argument
374 prexstat = prbk_get_buf_attrs(hndl); in _tnfctl_refresh_kernel()
382 if (ioctl(hndl->kfd, TIFIOCGMAXPROBE, &maxprobe) < 0) in _tnfctl_refresh_kernel()
384 if (maxprobe == hndl->num_probes) { in _tnfctl_refresh_kernel()
389 prexstat = alloc_probe_space(hndl, maxprobe); in _tnfctl_refresh_kernel()
394 obj_p = hndl->objlist; in _tnfctl_refresh_kernel()
415 if (ioctl(hndl->kfd, TIFIOCGPROBEVALS, &probebuf) < 0) { in _tnfctl_refresh_kernel()
[all …]
H A Dsym.c123 _tnfctl_sym_find(tnfctl_handle_t *hndl, const char *symname, uintptr_t *symaddr) in _tnfctl_sym_find() argument
134 LOCK(hndl, prexstat, release_lock); in _tnfctl_sym_find()
137 for (obj = hndl->objlist; obj; obj = obj->next) { in _tnfctl_sym_find()
154 UNLOCK(hndl, release_lock); in _tnfctl_sym_find()
167 _tnfctl_sym_obj_find(tnfctl_handle_t *hndl, const char *lib_base_name, in _tnfctl_sym_obj_find() argument
174 assert((hndl->mode == INTERNAL_MODE) ? in _tnfctl_sym_obj_find()
183 for (obj = hndl->objlist; obj; obj = obj->next) { in _tnfctl_sym_obj_find()
221 _tnfctl_sym_findname(tnfctl_handle_t *hndl, uintptr_t symaddr, in _tnfctl_sym_findname() argument
233 LOCK(hndl, prexstat, release_lock); in _tnfctl_sym_findname()
236 for (obj = hndl->objlist; obj; obj = obj->next) { in _tnfctl_sym_findname()
[all …]
H A Delf.c47 static tnfctl_errcode_t dynsec_num(tnfctl_handle_t *hndl, uintptr_t baseaddr,
77 _tnfctl_elf_dbgent(tnfctl_handle_t *hndl, uintptr_t * entaddr_p) in _tnfctl_elf_dbgent() argument
92 prbstat = prb_mainobj_get(hndl->proc_p, &objfd, &baseaddr); in _tnfctl_elf_dbgent()
105 prexstat = dynsec_num(hndl, baseaddr, objfd, &num_dynentries); in _tnfctl_elf_dbgent()
120 miscstat = hndl->p_read(hndl->proc_p, dynamic_addr, dynam_tab, in _tnfctl_elf_dbgent()
189 dynsec_num(tnfctl_handle_t *hndl, uintptr_t baseaddr, in dynsec_num() argument
/titanic_41/usr/src/cmd/tnf/prex/
H A Dmain.c117 static tnfctl_errcode_t check_trace_error(tnfctl_handle_t *hndl);
120 static tnfctl_errcode_t set_tracefile(tnfctl_handle_t *hndl);
121 static tnfctl_errcode_t set_probe_discovery_callback(tnfctl_handle_t *hndl);
122 static void * perprobe(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_p);
123 static tnfctl_errcode_t perprobe2(tnfctl_handle_t *hndl,
346 check_trace_error(tnfctl_handle_t *hndl) in check_trace_error() argument
351 err = tnfctl_trace_attrs_get(hndl, &trace_attrs); in check_trace_error()
386 tnfctl_handle_t *hndl; member
394 tnfctl_handle_t *hndl = args_p->hndl; in percmd() local
417 err = tnfctl_probe_enable(hndl, probe_p, NULL); in percmd()
[all …]
/titanic_41/usr/src/cmd/svc/common/
H A Dmanifest_hash.c116 mhash_retrieve_entry(scf_handle_t *hndl, const char *name, uchar_t *hash, in mhash_retrieve_entry() argument
136 if ((scope = scf_scope_create(hndl)) == NULL || in mhash_retrieve_entry()
137 (svc = scf_service_create(hndl)) == NULL || in mhash_retrieve_entry()
138 (pg = scf_pg_create(hndl)) == NULL || in mhash_retrieve_entry()
139 (prop = scf_property_create(hndl)) == NULL || in mhash_retrieve_entry()
140 (val = scf_value_create(hndl)) == NULL) { in mhash_retrieve_entry()
145 if (scf_handle_get_local_scope(hndl, scope) < 0) { in mhash_retrieve_entry()
232 mhash_store_entry(scf_handle_t *hndl, const char *name, const char *fname, in mhash_store_entry() argument
251 if ((scope = scf_scope_create(hndl)) == NULL || in mhash_store_entry()
252 (svc = scf_service_create(hndl)) == NULL || in mhash_store_entry()
[all …]
/titanic_41/usr/src/cmd/svc/mfstscan/
H A Dmfstscan.c66 scf_handle_t *hndl = NULL; in main() local
91 if ((hndl = scf_handle_create(SCF_VERSION)) == NULL) in main()
95 if (scf_handle_bind(hndl) != SCF_SUCCESS) in main()
117 status = find_manifests(hndl, argv[i], &manifests, in main()
140 if (hndl != NULL) { in main()
141 (void) scf_handle_unbind(hndl); in main()
142 (void) scf_handle_destroy(hndl); in main()
/titanic_41/usr/src/cmd/svc/startd/
H A Dfork.c710 scf_handle_t *hndl = NULL; in emi_set_state() local
714 if (hndl == NULL) in emi_set_state()
715 hndl = libscf_handle_create_bound(SCF_VERSION); in emi_set_state()
717 if (hndl == NULL) { in emi_set_state()
730 inst = safe_scf_instance_create(hndl); in emi_set_state()
732 if (scf_handle_decode_fmri(hndl, SCF_INSTANCE_EMI, NULL, NULL, in emi_set_state()
740 libscf_handle_rebind(hndl); in emi_set_state()
760 switch (r = _restarter_commit_states(hndl, &idata, state, in emi_set_state()
766 libscf_handle_rebind(hndl); in emi_set_state()
786 scf_handle_destroy(hndl); in emi_set_state()
[all …]
H A Dstartd.c478 scf_handle_t *hndl; in read_startd_config() local
516 for (hndl = libscf_handle_create_bound(SCF_VERSION); hndl == NULL; in read_startd_config()
517 hndl = libscf_handle_create_bound(SCF_VERSION), bind_fails++) { in read_startd_config()
541 switch (r = _restarter_commit_states(hndl, &idata, in read_startd_config()
559 libscf_handle_rebind(hndl); in read_startd_config()
575 pg = safe_scf_pg_create(hndl); in read_startd_config()
576 prop = safe_scf_property_create(hndl); in read_startd_config()
577 val = safe_scf_value_create(hndl); in read_startd_config()
578 inst = safe_scf_instance_create(hndl); in read_startd_config()
581 if (scf_handle_decode_fmri(hndl, SCF_SERVICE_STARTD, NULL, NULL, inst, in read_startd_config()
[all …]
/titanic_41/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_bcache.h761 #define _SD_SETUP_HANDLE(hndl, cd, fpos, flen, flag) { \ argument
762 hndl->bh_cd = cd; \
763 hndl->bh_vec = hndl->bh_bufvec; \
764 hndl->bh_fba_pos = fpos; \
765 hndl->bh_fba_len = flen; \
766 hndl->bh_busy_thread = nsc_threadp(); \
768 hndl->bh_flag |= \
771 hndl->bh_flag |= \
961 #define _SD_DISCONNECT_CALLBACK(hndl) \ argument
962 if ((hndl)->bh_disconnect_cb) { \
[all …]
/titanic_41/usr/src/cmd/svc/svcprop/
H A Dsvcprop.c100 static scf_handle_t *hndl; variable
271 if ((iter = scf_iter_create(hndl)) == NULL || in display_prop()
272 (val = scf_value_create(hndl)) == NULL) in display_prop()
315 if ((prop = scf_property_create(hndl)) == NULL || in display_pg()
316 (iter = scf_iter_create(hndl)) == NULL) in display_pg()
380 scf_snapshot_t *snap = scf_snapshot_create(hndl); in get_snapshot()
426 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent()
427 (iter = scf_iter_create(hndl)) == NULL) in process_ent()
477 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent()
478 (prop = scf_property_create(hndl)) == NULL) in process_ent()
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Drctlsys.c225 rctl_hndl_t hndl; in rctlsys_get() local
251 if ((hndl = rctl_hndl_lookup(kname)) == -1) { in rctlsys_get()
280 if (rctl_set_find(rset, hndl, &rctl) == -1) { in rctlsys_get()
307 if (ret = rctl_local_get(hndl, NULL, nval, curproc)) { in rctlsys_get()
334 ret = rctl_local_get(hndl, oval, nval, curproc); in rctlsys_get()
392 rctl_hndl_t hndl; in rctlsys_set() local
422 if ((hndl = rctl_hndl_lookup(kname)) == -1) { in rctlsys_set()
429 rde = rctl_dict_lookup_hndl(hndl); in rctlsys_set()
588 if (ret = rctl_local_get(hndl, NULL, rval1, pp)) { in rctlsys_set()
601 } while (rctl_local_get(hndl, rval2, rval1, pp) == 0); in rctlsys_set()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Drctl.c436 rctl_dict_lookup_hndl(rctl_hndl_t hndl) in rctl_dict_lookup_hndl() argument
447 if (rde->rcd_id == hndl) { in rctl_dict_lookup_hndl()
976 rctl_set_insert(rctl_set_t *set, rctl_hndl_t hndl, rctl_t *rctl) in rctl_set_insert() argument
978 uint_t index = hndl % rctl_set_size; in rctl_set_insert()
990 if (hndl < set->rcs_ctls[index]->rc_id) { in rctl_set_insert()
1002 if (next_ctl->rc_id > hndl) { in rctl_set_insert()
1448 rctl_set_find(rctl_set_t *set, rctl_hndl_t hndl, rctl_t **rctl) in rctl_set_find() argument
1450 uint_t index = hndl % rctl_set_size; in rctl_set_find()
1457 if (curr_ctl->rc_id == hndl) { in rctl_set_find()
1483 rctl_enforced_value(rctl_hndl_t hndl, rctl_set_t *rset, struct proc *p) in rctl_enforced_value() argument
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/
H A Drctl.c76 rctl_hndl_t hndl; in rctl() local
90 hndl = (rctl_hndl_t)argp->a_un.a_val; in rctl()
92 hndl = (rctl_hndl_t)mdb_strtoull(argp->a_un.a_str); in rctl()
94 if (rctl.rc_id != hndl) in rctl()
174 rctl_hndl_t hndl; member
182 if (data->hndl == entry->rcd_id) { in hndl2dict()
213 rdict.hndl = 0; in rctl_list()
222 rdict.hndl = (rctl_hndl_t)argp->a_un.a_val; in rctl_list()
224 rdict.hndl = in rctl_list()
263 if (rdict.hndl != 0 && rdict.type != i) in rctl_list()
/titanic_41/usr/src/lib/libbsm/common/
H A Daudit_scf.c423 if (handle->hndl != NULL) { in scf_free()
424 if (scf_handle_unbind(handle->hndl) == -1) { in scf_free()
428 scf_handle_destroy(handle->hndl); in scf_free()
440 if ((handle->hndl = scf_handle_create(SCF_VERSION)) == NULL || in scf_init()
441 scf_handle_bind(handle->hndl) != 0) { in scf_init()
444 if ((handle->inst = scf_instance_create(handle->hndl)) == NULL) { in scf_init()
447 if ((handle->pgrp = scf_pg_create(handle->hndl)) == NULL) { in scf_init()
450 if ((handle->prop = scf_property_create(handle->hndl)) == NULL) { in scf_init()
492 if ((handle_iter->pgrp = scf_iter_create(handle->hndl)) == NULL) { in scf_init_iter()
495 if ((handle_iter->prop = scf_iter_create(handle->hndl)) == NULL) { in scf_init_iter()
[all …]
/titanic_41/usr/src/lib/libnsl/rpc/
H A Drpc_generic.c422 void *hndl; in __rpcfd_to_nconf() local
445 hndl = setnetconfig(); in __rpcfd_to_nconf()
446 if (hndl == NULL) in __rpcfd_to_nconf()
460 while (nconf = getnetconfig(hndl)) { in __rpcfd_to_nconf()
472 (void) endnetconfig(hndl); in __rpcfd_to_nconf()
/titanic_41/usr/src/uts/common/crypto/api/
H A Dkcf_miscapi.c319 crypto_notify_handle_t hndl; in crypto_notify_events() local
344 hndl = (crypto_notify_handle_t)nep; in crypto_notify_events()
347 return (hndl); in crypto_notify_events()
365 crypto_unnotify_events(crypto_notify_handle_t hndl) in crypto_unnotify_events() argument
367 kcf_ntfy_elem_t *nep = (kcf_ntfy_elem_t *)hndl; in crypto_unnotify_events()
369 if (hndl == NULL) in crypto_unnotify_events()
852 crypto_get_provinfo(crypto_provider_t hndl, crypto_provider_ext_info_t *info) in crypto_get_provinfo() argument
859 pd = (kcf_provider_desc_t *)hndl; in crypto_get_provinfo()
/titanic_41/usr/src/uts/common/avs/ns/sv/
H A Dsv.c2092 nsc_buf_t *hndl = NULL; in _sv_lyr_strategy() local
2204 hndl = bufh; in _sv_lyr_strategy()
2213 fba_len, rw, &hndl); in _sv_lyr_strategy()
2220 if (hndl != bufh) in _sv_lyr_strategy()
2221 (void) nsc_free_buf(hndl); in _sv_lyr_strategy()
2222 hndl = NULL; in _sv_lyr_strategy()
2227 v = hndl->sb_vec; in _sv_lyr_strategy()
2237 uint64_t, (uint64_t)(hndl->sb_pos + hndl->sb_len - 1)); in _sv_lyr_strategy()
2239 rc = nsc_read(hndl, (hndl->sb_pos + hndl->sb_len - 1), 1, 0); in _sv_lyr_strategy()
2268 uint64_t, (uint64_t)hndl->sb_pos, in _sv_lyr_strategy()
[all …]

12