Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/svc/common/
H A Dmanifest_hash.c137 if ((scope = scf_scope_create(hndl)) == NULL || in mhash_retrieve_entry()
138 (svc = scf_service_create(hndl)) == NULL || in mhash_retrieve_entry()
139 (pg = scf_pg_create(hndl)) == NULL || in mhash_retrieve_entry()
141 (val = scf_value_create(hndl)) == NULL) { in mhash_retrieve_entry()
256 (pg = scf_pg_create(hndl)) == NULL || in mhash_store_entry()
359 if ((e = scf_entry_create(hndl)) == NULL || in mhash_store_entry()
360 (val = scf_value_create(hndl)) == NULL || in mhash_store_entry()
361 (fe = scf_entry_create(hndl)) == NULL || in mhash_store_entry()
362 (fval = scf_value_create(hndl)) == NULL || in mhash_store_entry()
363 (ae = scf_entry_create(hndl)) == NULL || in mhash_store_entry()
[all …]
H A Dmanifest_find.c252 find_manifests(scf_handle_t *hndl, const char *dir, in find_manifests() argument
266 tsdp->tsd_hndl = hndl; in find_manifests()
/illumos-gate/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()
/illumos-gate/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()
717 if (hndl == NULL) { in emi_set_state()
740 libscf_handle_rebind(hndl); in emi_set_state()
766 libscf_handle_rebind(hndl); in emi_set_state()
786 scf_handle_destroy(hndl); in emi_set_state()
810 scf_handle_t *hndl = NULL; in emi_is_disabled() local
816 while (hndl == NULL) { in emi_is_disabled()
819 if (hndl == NULL) { in emi_is_disabled()
876 hndl, pname, in emi_is_disabled()
[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()
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()
625 iter = safe_scf_iter_create(hndl); in read_startd_config()
629 piter = safe_scf_iter_create(hndl); in read_startd_config()
646 libscf_handle_rebind(hndl); in read_startd_config()
734 (void) scf_handle_unbind(hndl); in read_startd_config()
[all …]
H A Dlibscf.c3313 handle_decorate_and_bind(scf_handle_t *hndl) in handle_decorate_and_bind() argument
3317 door_dec_value = safe_scf_value_create(hndl); in handle_decorate_and_bind()
3327 if (scf_handle_decorate(hndl, "door_path", door_dec_value) != 0) in handle_decorate_and_bind()
3333 if (scf_handle_bind(hndl) == 0) in handle_decorate_and_bind()
3352 scf_handle_t *hndl = scf_handle_create(v); in libscf_handle_create_bound() local
3354 if (hndl == NULL) in libscf_handle_create_bound()
3355 return (hndl); in libscf_handle_create_bound()
3357 if (handle_decorate_and_bind(hndl) == 0) in libscf_handle_create_bound()
3358 return (hndl); in libscf_handle_create_bound()
3360 scf_handle_destroy(hndl); in libscf_handle_create_bound()
/illumos-gate/usr/src/cmd/svc/svcprop/
H A Dsvcprop.c100 static scf_handle_t *hndl; variable
272 (val = scf_value_create(hndl)) == NULL) in display_prop()
316 (iter = scf_iter_create(hndl)) == NULL) in display_pg()
426 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent()
477 if ((pg = scf_pg_create(hndl)) == NULL || in process_ent()
614 prop = scf_property_create(hndl); in process_pg()
1011 hndl = scf_handle_create(SCF_VERSION); in main()
1012 if (hndl == NULL) in main()
1069 scf_handle_t *h = hndl; in main()
1117 if (scf_handle_bind(hndl) == -1) in main()
[all …]
/illumos-gate/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()
391 rctl_hndl_t hndl; in rctlsys_set() local
421 if ((hndl = rctl_hndl_lookup(kname)) == -1) { in rctlsys_set()
428 rde = rctl_dict_lookup_hndl(hndl); in rctlsys_set()
707 (void) rctl_local_delete(hndl, rval1, in rctlsys_set()
709 if (rctl_local_get(hndl, NULL, rval1, in rctlsys_set()
891 rctl_hndl_t hndl; in rctlsys_projset() local
911 if ((hndl = rctl_hndl_lookup(kname)) == -1) { in rctlsys_projset()
[all …]
/illumos-gate/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()
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()
1450 uint_t index = hndl % rctl_set_size; in rctl_set_find()
1457 if (curr_ctl->rc_id == hndl) { in rctl_set_find()
1490 if (rctl_set_find(rset, hndl, &rctl) == -1) in rctl_enforced_value()
1582 if (rctl_set_find(rset, hndl, &rctl) == -1) { in rctl_local_op()
1587 ret = cbop(hndl, p, &e, rctl, oval, nval); in rctl_local_op()
[all …]
H A Dtask.c495 mod_hash_hndl_t hndl; in task_create() local
557 (void) mod_hash_reserve(task_hash, &hndl); in task_create()
561 (mod_hash_val_t *)tk, hndl) != 0) { in task_create()
562 mod_hash_cancel(task_hash, &hndl); in task_create()
951 mod_hash_hndl_t hndl; in task_init() local
1010 (void) mod_hash_reserve(task_hash, &hndl); in task_init()
1015 (mod_hash_val_t *)task0p, hndl) != 0) { in task_init()
1016 mod_hash_cancel(task_hash, &hndl); in task_init()
H A Dproject.c218 mod_hash_hndl_t hndl; in project_hold_by_id() local
248 (void) mod_hash_reserve(projects_hash, &hndl); in project_hold_by_id()
275 (mod_hash_val_t)p, hndl)) in project_hold_by_id()
299 mod_hash_cancel(projects_hash, &hndl); in project_hold_by_id()
H A Dzone.c4002 rctl_hndl_t hndl; in zsched() local
4009 hndl = rctl_hndl_lookup(name); in zsched()
4010 ASSERT(hndl != -1); in zsched()
4011 rde = rctl_dict_lookup_hndl(hndl); in zsched()
4018 error = rctl_local_get(hndl, NULL, &oval, pp); in zsched()
4025 error = rctl_local_delete(hndl, &oval, pp); in zsched()
4042 if (rctl_local_insert(hndl, nvalp, pp) != 0) in zsched()
4295 rctl_hndl_t hndl; in parse_rctls() local
4306 if ((hndl = rctl_hndl_lookup(name)) == -1) { in parse_rctls()
4309 rde = rctl_dict_lookup_hndl(hndl); in parse_rctls()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Drctl.c74 rctl_hndl_t hndl; in rctl() local
88 hndl = (rctl_hndl_t)argp->a_un.a_val; in rctl()
90 hndl = (rctl_hndl_t)mdb_strtoull(argp->a_un.a_str); in rctl()
92 if (rctl.rc_id != hndl) in rctl()
172 rctl_hndl_t hndl; member
180 if (data->hndl == entry->rcd_id) { in hndl2dict()
211 rdict.hndl = 0; in rctl_list()
220 rdict.hndl = (rctl_hndl_t)argp->a_un.a_val; in rctl_list()
222 rdict.hndl = in rctl_list()
261 if (rdict.hndl != 0 && rdict.type != i) in rctl_list()
/illumos-gate/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 …]
H A Daudit_scf.h70 scf_handle_t *hndl; /* base scf handle */ member
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_generic.c420 void *hndl; in __rpcfd_to_nconf() local
443 hndl = setnetconfig(); in __rpcfd_to_nconf()
444 if (hndl == NULL) in __rpcfd_to_nconf()
458 while (nconf = getnetconfig(hndl)) { in __rpcfd_to_nconf()
470 (void) endnetconfig(hndl); in __rpcfd_to_nconf()
/illumos-gate/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()
/illumos-gate/usr/src/lib/libscf/common/
H A Dhighlevel.c372 scf_default_secflags(scf_handle_t *hndl, scf_secflags_t *flags) in scf_default_secflags() argument
402 if ((val = scf_value_create(hndl)) == NULL) in scf_default_secflags()
405 if ((prop = scf_property_create(hndl)) == NULL) { in scf_default_secflags()
414 if (scf_handle_decode_fmri(hndl, pfmri, in scf_default_secflags()
/illumos-gate/usr/src/uts/common/sys/usb/hcd/uhci/
H A Duhci.h113 #define SetReg32(hndl, addr, val) ddi_put32((hndl), \ argument
115 #define GetReg32(hndl, addr) ddi_get32((hndl), &(addr)) argument
/illumos-gate/usr/src/cmd/ipf/svc/
H A Dipfd.c152 repository_rebind(scf_handle_t *hndl) in repository_rebind() argument
156 (void) scf_handle_unbind(hndl); in repository_rebind()
157 while ((scf_handle_bind(hndl)) != 0) { in repository_rebind()
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_tx.c76 (void) ddi_dma_unbind_handle(dmah->hndl); in nge_tx_recycle_all()
261 (void) ddi_dma_unbind_handle(dme->hndl); in nge_tx_recycle()
486 err = ddi_dma_addr_bind_handle(dmah->hndl, in nge_send_mapped()
511 ddi_dma_nextcookie(dmah->hndl, cookie + slot)) in nge_send_mapped()
582 (void) ddi_dma_unbind_handle(dmer->hndl); in nge_send_mapped()
H A Dnge_main.c472 if (srp->dmahndl[slot].hndl) { in nge_fini_send_ring()
473 (void) ddi_dma_unbind_handle(srp->dmahndl[slot].hndl); in nge_fini_send_ring()
474 ddi_dma_free_handle(&srp->dmahndl[slot].hndl); in nge_fini_send_ring()
475 srp->dmahndl[slot].hndl = NULL; in nge_fini_send_ring()
544 NULL, &srp->dmahndl[slot].hndl); in nge_init_send_ring()
H A Dnge.h442 ddi_dma_handle_t hndl; member
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_switch.h340 scf_handle_t *hndl,
348 scf_handle_t *hndl,
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/
H A Dqlt.c6419 uint32_t hndl; in qlt_handle_unsol_els_completion() local
6424 hndl = QMEM_RD32(qlt, rsp+4); in qlt_handle_unsol_els_completion()
6525 uint32_t hndl; in qlt_handle_unsol_els_abort_completion() local
6529 hndl = QMEM_RD32(qlt, rsp+4); in qlt_handle_unsol_els_abort_completion()
6536 ASSERT(hndl == 0); in qlt_handle_unsol_els_abort_completion()
6604 uint32_t hndl; in qlt_handle_sol_els_completion() local
6608 hndl = QMEM_RD32(qlt, rsp+4); in qlt_handle_sol_els_completion()
6679 uint32_t hndl; in qlt_handle_ct_completion() local
6683 hndl = QMEM_RD32(qlt, rsp+4); in qlt_handle_ct_completion()
6797 uint32_t hndl; in qlt_handle_ctio_completion() local
[all …]

12