/illumos-gate/usr/src/cmd/svc/common/ |
H A D | manifest_hash.c | 117 mhash_retrieve_entry(scf_handle_t *hndl, const char *name, uchar_t *hash, in mhash_retrieve_entry() argument 137 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() 140 (prop = scf_property_create(hndl)) == NULL || in mhash_retrieve_entry() 141 (val = scf_value_create(hndl)) == NULL) { in mhash_retrieve_entry() 146 if (scf_handle_get_local_scope(hndl, scope) < 0) { in mhash_retrieve_entry() 233 mhash_store_entry(scf_handle_t *hndl, const char *name, const char *fname, in mhash_store_entry() argument 254 if ((scope = scf_scope_create(hndl)) == NULL || in mhash_store_entry() 255 (svc = scf_service_create(hndl)) == NULL || in mhash_store_entry() [all …]
|
H A D | manifest_find.c | 252 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 D | mfstscan.c | 66 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 D | fork.c | 710 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 D | startd.c | 483 scf_handle_t *hndl; in read_startd_config() local 521 for (hndl = libscf_handle_create_bound(SCF_VERSION); hndl == NULL; in read_startd_config() 522 hndl = libscf_handle_create_bound(SCF_VERSION), bind_fails++) { in read_startd_config() 546 switch (r = _restarter_commit_states(hndl, &idata, in read_startd_config() 564 libscf_handle_rebind(hndl); in read_startd_config() 580 pg = safe_scf_pg_create(hndl); in read_startd_config() 581 prop = safe_scf_property_create(hndl); in read_startd_config() 582 val = safe_scf_value_create(hndl); in read_startd_config() 583 inst = safe_scf_instance_create(hndl); in read_startd_config() 586 if (scf_handle_decode_fmri(hndl, SCF_SERVICE_STARTD, NULL, NULL, inst, in read_startd_config() [all …]
|
H A D | libscf.c | 3313 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 D | svcprop.c | 100 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 …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 225 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() 306 if (ret = rctl_local_get(hndl, NULL, nval, curproc)) { in rctlsys_get() 333 ret = rctl_local_get(hndl, oval, nval, curproc); 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() 587 if (ret = rctl_local_get(hndl, NULL, rval1, pp)) { in rctlsys_set() 600 } while (rctl_local_get(hndl, rval2, rval1, pp) == 0); in rctlsys_set() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | rctl.c | 436 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 …]
|
H A D | task.c | 495 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 D | project.c | 218 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 D | zone.c | 4002 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/lib/libbsm/common/ |
H A D | audit_scf.c | 423 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 D | audit_scf.h | 70 scf_handle_t *hndl; /* base scf handle */ member
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | rctl.c | 75 rctl_hndl_t hndl; in rctl() local 88 hndl = (rctl_hndl_t)mdb_argtoull(argp); in rctl() 90 if (rctl.rc_id != hndl) in rctl() 170 rctl_hndl_t hndl; member 178 if (data->hndl == entry->rcd_id) { in hndl2dict() 209 rdict.hndl = 0; in rctl_list() 217 rdict.hndl = (rctl_hndl_t)mdb_argtoull(argp); in rctl_list() 255 if (rdict.hndl != 0 && rdict.type != i) in rctl_list()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpc_generic.c | 420 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 D | kcf_miscapi.c | 319 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 D | highlevel.c | 372 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 D | uhci.h | 113 #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 D | ipfd.c | 152 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 D | nge_tx.c | 76 (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 D | nge_main.c | 472 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 D | nge.h | 442 ddi_dma_handle_t hndl; member
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_switch.h | 340 scf_handle_t *hndl, 348 scf_handle_t *hndl,
|
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt.c | 6419 uint32_t hndl; in qlt_handle_unsol_els_completion() local 6424 hndl = QMEM_RD32(qlt, rsp+4); in qlt_handle_unsol_els_completion() 6430 if (!CMD_HANDLE_VALID(hndl)) { in qlt_handle_unsol_els_completion() 6431 EL(qlt, "handle = %xh\n", hndl); in qlt_handle_unsol_els_completion() 6439 hndl, status, subcode1, subcode2, (void *)rsp); in qlt_handle_unsol_els_completion() 6459 cmd = fct_handle_to_cmd(qlt->qlt_port, hndl); in qlt_handle_unsol_els_completion() 6461 EL(qlt, "fct_handle_to_cmd cmd==NULL, hndl=%xh\n", hndl); in qlt_handle_unsol_els_completion() 6467 "get cmd, hndl-%x, status-%x, rsp-%p", hndl, status, 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() [all …]
|