/titanic_41/usr/src/cmd/ibd_upgrade/ |
H A D | ibd_delete_link.c | 79 ibd_delete_link(dladm_handle_t dlh, char *link) in ibd_delete_link() argument 90 if ((status = ibd_dladm_door_call(dlh, &getlinkid, sizeof (getlinkid), in ibd_delete_link() 107 if ((status = dladm_remove_conf(dlh, linkid)) != DLADM_STATUS_OK) { in ibd_delete_link() 113 if ((status = dladm_destroy_datalink_id(dlh, linkid, in ibd_delete_link() 125 dladm_handle_t dlh; in main() local 136 if ((status = dladm_open(&dlh)) != DLADM_STATUS_OK) { in main() 143 if (ibd_delete_link(dlh, argv[i]) != DLADM_STATUS_OK) { in main() 144 dladm_close(dlh); in main() 149 dladm_close(dlh); in main()
|
/titanic_41/usr/src/lib/libdevid/ |
H A D | deviceid.c | 230 di_devlink_handle_t dlh = NULL; in devid_deviceid_to_nmlist() local 274 dlh = devid_deviceid_to_nmlist_dlh; in devid_deviceid_to_nmlist() 275 if (dlh && in devid_deviceid_to_nmlist() 277 (void) di_devlink_fini(&dlh); in devid_deviceid_to_nmlist() 278 dlh = devid_deviceid_to_nmlist_dlh = NULL; in devid_deviceid_to_nmlist() 280 if ((dlh == NULL) && in devid_deviceid_to_nmlist() 281 ((dlh = di_devlink_init(NULL, 0)) == NULL)) in devid_deviceid_to_nmlist() 297 (void) di_devlink_walk(dlh, NULL, path, in devid_deviceid_to_nmlist() 345 if (dlh) { in devid_deviceid_to_nmlist() 348 devid_deviceid_to_nmlist_dlh = dlh; in devid_deviceid_to_nmlist() [all …]
|
/titanic_41/usr/src/uts/common/io/dld/ |
H A D | dld_drv.c | 336 dls_dl_handle_t dlh; in drv_ioc_attr() local 346 if ((err = dls_devnet_hold_tmp(diap->dia_linkid, &dlh)) != 0) in drv_ioc_attr() 350 dls_devnet_mac(dlh), &mph)) != 0) { in drv_ioc_attr() 351 dls_devnet_rele_tmp(dlh); in drv_ioc_attr() 355 if ((err = dls_link_hold(dls_devnet_mac(dlh), &dlp)) != 0) { in drv_ioc_attr() 357 dls_devnet_rele_tmp(dlh); in drv_ioc_attr() 365 dls_devnet_rele_tmp(dlh); in drv_ioc_attr() 379 dls_dl_handle_t dlh; in drv_ioc_phys_attr() local 403 if (dls_devnet_hold_tmp(dipp->dip_linkid, &dlh) != 0) { in drv_ioc_phys_attr() 412 dls_devnet_rele_tmp(dlh); in drv_ioc_phys_attr() [all …]
|
/titanic_41/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | syseventd.c | 1240 void *dlh, *f; in load_modules() local 1253 if ((dlh = dlopen(modpath, RTLD_LAZY)) == NULL) { in load_modules() 1257 } else if ((f = dlsym(dlh, EVENT_INIT)) == NULL) { in load_modules() 1260 (void) dlclose(dlh); in load_modules() 1268 (void) dlclose(dlh); in load_modules() 1276 (void) dlclose(dlh); in load_modules() 1281 mod->dlhandle = dlh; in load_modules() 1285 mod->event_mod_fini = (void (*)())dlsym(dlh, EVENT_FINI); in load_modules() 1291 (void) dlclose(dlh); in load_modules() 1300 (void) dlclose(dlh); in load_modules() [all …]
|
/titanic_41/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 476 void *dlh; in do_plugin() local 480 dlh = dlopen(path, RTLD_LAZY | RTLD_GLOBAL); in do_plugin() 481 if (dlh == NULL) { in do_plugin() 500 fp = (pcidr_plugin_t)dlsym(dlh, PCIDR_PLUGIN_SYMSTR); in do_plugin() 518 if (dlh != NULL) in do_plugin() 519 (void) dlclose(dlh); in do_plugin()
|
/titanic_41/usr/src/uts/common/io/dls/ |
H A D | dls_mgmt.c | 647 dls_devnet_rele_tmp(dls_dl_handle_t dlh) in dls_devnet_rele_tmp() argument 649 dls_devnet_t *ddp = dlh; in dls_devnet_rele_tmp() 662 dls_dl_handle_t dlh; in dls_devnet_hold_link() local 666 if ((err = dls_devnet_hold_tmp(linkid, &dlh)) != 0) in dls_devnet_hold_link() 669 if ((err = dls_link_hold(dls_devnet_mac(dlh), &dlp)) != 0) { in dls_devnet_hold_link() 670 dls_devnet_rele_tmp(dlh); in dls_devnet_hold_link() 676 *ddhp = dlh; in dls_devnet_hold_link() 682 dls_devnet_rele_link(dls_dl_handle_t dlh, dls_link_t *dlp) in dls_devnet_rele_link() argument 687 dls_devnet_rele_tmp(dlh); in dls_devnet_rele_link() 1593 dls_devnet_close(dls_dl_handle_t dlh) in dls_devnet_close() argument [all …]
|
/titanic_41/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 84 dladm_handle_t dlh; in dapli_init_hca() local 87 if (dladm_open(&dlh) != DLADM_STATUS_OK) { in dapli_init_hca() 101 if ((dladm_name2info(dlh, hca_ptr->name, &linkid, NULL, &class, in dapli_init_hca() 104 (dladm_part_info(dlh, linkid, &ib_attr, in dapli_init_hca() 169 dladm_close(dlh); in dapli_init_hca()
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_ngz.c | 454 dladm_handle_t dlh = iph->iph_dlh; in ipadm_init_net_from_gz() local 475 if (dladm_name2info(dlh, ifname, &linkid, NULL, NULL, in ipadm_init_net_from_gz() 479 (void) i_ipadm_zone_network_attr(dlh, linkid, &nwd); in ipadm_init_net_from_gz() 481 (void) dladm_walk_datalink_id(i_ipadm_zone_network_attr, dlh, in ipadm_init_net_from_gz()
|
/titanic_41/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 4241 g_get_port_multipath(char *port_wwn_s, struct dlist **dlh, int verbose) in g_get_port_multipath() argument 4249 dl = *dlh = dlt = (struct dlist *)NULL; in g_get_port_multipath() 4265 while (*dlh != NULL) { in g_get_port_multipath() 4266 dl = (*dlh)->next; in g_get_port_multipath() 4267 (void) g_destroy_data(*dlh); in g_get_port_multipath() 4268 *dlh = dl; in g_get_port_multipath() 4278 if (*dlh == NULL) { in g_get_port_multipath() 4279 *dlh = dlt = dl; in g_get_port_multipath() 4517 g_free_multipath(struct dlist *dlh) in g_free_multipath() argument 4521 while (dlh != NULL) { in g_free_multipath() [all …]
|
/titanic_41/usr/src/cmd/audio/audioctl/ |
H A D | audioctl.c | 1218 di_devlink_handle_t dlh; in do_init_devices() local 1239 dlh = di_devlink_init(NULL, 0); in do_init_devices() 1240 if (dlh == NULL) { in do_init_devices() 1245 if (di_devlink_walk(dlh, "^mixer", NULL, 0, &verbose, in do_init_devices()
|
/titanic_41/usr/src/uts/common/io/mac/ |
H A D | mac_flow.c | 1214 dls_dl_handle_t dlh; in mac_link_flow_add() local 1258 err = dls_devnet_hold_link(linkid, &dlh, &dlp); in mac_link_flow_add() 1294 dls_devnet_rele_link(dlh, dlp); in mac_link_flow_add() 1303 dls_devnet_rele_link(dlh, dlp); in mac_link_flow_add() 1545 dls_dl_handle_t dlh; in mac_link_flow_walk() local 1553 err = dls_devnet_hold_link(linkid, &dlh, &dlp); in mac_link_flow_walk() 1566 dls_devnet_rele_link(dlh, dlp); in mac_link_flow_walk()
|
H A D | mac_client.c | 371 dls_dl_handle_t dlh; in mac_open_by_linkid() local 374 if ((err = dls_devnet_hold_tmp(linkid, &dlh)) != 0) in mac_open_by_linkid() 377 dls_devnet_prop_task_wait(dlh); in mac_open_by_linkid() 379 err = mac_open(dls_devnet_mac(dlh), mhp); in mac_open_by_linkid() 381 dls_devnet_rele_tmp(dlh); in mac_open_by_linkid()
|
/titanic_41/usr/src/lib/libpicltree/ |
H A D | ptree_impl.h | 220 void *dlh; member
|
H A D | picltree.c | 3452 pl->dlh = dlopen(pl->pathname, RTLD_LAZY|RTLD_LOCAL); in load_plugins() 3453 if (pl->dlh == NULL) { in load_plugins()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 94 static dladm_handle_t dlh; variable 1200 status = dladm_iptun_getparams(dlh, ¶ms, DLADM_OPT_ACTIVE); in set_tun_algs() 1267 status = dladm_iptun_modify(dlh, ¶ms, DLADM_OPT_ACTIVE); in set_tun_algs() 1769 (void) dlpi_walk(ni_entry, dlh, 0); in find_all_interfaces() 2672 status = dladm_iptun_modify(dlh, params, DLADM_OPT_ACTIVE); in modify_tun() 2716 status = dladm_set_linkprop(dlh, linkid, propname, &value, 1, in set_tun_prop() 3164 if (dladm_iptun_getparams(dlh, ¶ms, DLADM_OPT_ACTIVE) != in tun_status() 3197 if (dladm_get_linkprop(dlh, linkid, DLADM_PROP_VAL_CURRENT, "hoplimit", in tun_status() 3203 if (dladm_get_linkprop(dlh, linkid, DLADM_PROP_VAL_CURRENT, in tun_status() 3867 if ((status = dladm_open(&dlh)) != DLADM_STATUS_OK) in ifconfig_dladm_open() [all …]
|
/titanic_41/usr/src/cmd/datadm/ |
H A D | datadm.c | 1385 dladm_handle_t dlh; in datadm_build_ia_lists() local 1392 if (dladm_open(&dlh) != DLADM_STATUS_OK) in datadm_build_ia_lists() 1409 ia_args.ia_dlh = dlh; in datadm_build_ia_lists() 1426 dladm_close(dlh); in datadm_build_ia_lists()
|
/titanic_41/usr/src/lib/librsm/common/ |
H A D | rsmlib.c | 289 void *dlh; in _rsm_modload() local 299 dlh = dlopen(clib, RTLD_LAZY); in _rsm_modload() 300 if (dlh == NULL) { in _rsm_modload() 309 fptr = (rsm_attach_entry_t)dlsym(dlh, clib); /* lint !e611 */ in _rsm_modload() 325 (void) dlclose(dlh); in _rsm_modload()
|