Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libc/port/gen/
H A Dnss_deffinder.c68 void *dlhandle; in SO_per_src_lookup() local
76 if ((dlhandle = dlopen(name, RTLD_LAZY)) != 0) { in SO_per_src_lookup()
78 if ((sym = dlsym(dlhandle, name)) == 0) { in SO_per_src_lookup()
79 (void) dlclose(dlhandle); in SO_per_src_lookup()
81 *delete_privp = dlhandle; in SO_per_src_lookup()
/titanic_41/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_common.c97 void *dlhandle; in __dh_generic_initialize() local
101 if ((dlhandle = dlopen(DHLIB, RTLD_NOW)) == NULL) { in __dh_generic_initialize()
107 dlsym(dlhandle, DH_MECH_SYM); in __dh_generic_initialize()
H A Ddh_template.c109 void *dlhandle = dlopen(0, RTLD_NOLOAD); in dh_getpublickey() local
110 if (dlhandle == 0) { in dh_getpublickey()
116 dlsym(dlhandle, NIS_SYMBOL); in dh_getpublickey()
/titanic_41/usr/src/lib/libreparse/common/
H A Dfs_reparse_lib.c313 void *dlhandle; in rp_plugin_init() local
342 if ((dlhandle = dlopen(path, RTLD_FIRST|RTLD_LAZY)) == NULL) in rp_plugin_init()
346 dlsym(dlhandle, "rp_plugin_ops"); in rp_plugin_init()
351 (void) dlclose(dlhandle); in rp_plugin_init()
357 (void) dlclose(dlhandle); in rp_plugin_init()
366 proto->plugin_handle = dlhandle; in rp_plugin_init()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Drstp.c150 status = dladm_get_single_mac_stat(dlhandle, pd->linkid, "link_duplex", in get_duplex()
298 status = dladm_get_linkprop_values(dlhandle, linkid, in get_init_port_cfg()
304 status = dladm_get_linkprop_values(dlhandle, linkid, in get_init_port_cfg()
310 status = dladm_get_linkprop_values(dlhandle, linkid, in get_init_port_cfg()
316 status = dladm_get_linkprop_values(dlhandle, linkid, in get_init_port_cfg()
322 status = dladm_get_linkprop_values(dlhandle, linkid, in get_init_port_cfg()
334 status = dladm_get_linkprop_values(dlhandle, linkid, in get_init_port_cfg()
340 (void) dladm_set_linkprop(dlhandle, linkid, "stp_mcheck", &pval, in get_init_port_cfg()
H A Devents.c75 (void) dladm_destroy_datalink_id(dlhandle, main_linkid, in linkdown()
92 status = dladm_name2info(dlhandle, bnb.bnb_name, &bnb.bnb_linkid, NULL, in open_bridge_control()
116 status = dladm_up_datalink_id(dlhandle, bnb.bnb_linkid); in open_bridge_control()
271 status = dladm_get_linkprop_values(dlhandle, linkid, in update_port()
277 status = dladm_get_linkprop_values(dlhandle, linkid, in update_port()
401 (void) dladm_walk_datalink_id(update_link, dlhandle, NULL, in handle_refresh()
404 (void) dladm_walk_datalink_id(set_vlan, dlhandle, NULL, in handle_refresh()
569 status = dladm_get_single_mac_stat(dlhandle, port->linkid, "ifspeed", in get_dladm_speed()
H A Dmain.c53 dladm_handle_t dlhandle; variable
219 if ((status = dladm_open(&dlhandle)) != DLADM_STATUS_OK) { in main()
H A Dglobal.h78 extern dladm_handle_t dlhandle;
/titanic_41/usr/src/lib/libc/port/sys/
H A Dzone.c145 void *dlhandle = dlopen("libzonecfg.so.1", RTLD_LAZY); in zone_get_id() local
148 if (dlhandle != NULL && in zone_get_id()
149 (sym = dlsym(dlhandle, "zone_get_id")) == NULL) { in zone_get_id()
151 (void) dlclose(dlhandle); in zone_get_id()
/titanic_41/usr/src/cmd/ldmad/
H A Dldma_device.c214 dladm_handle_t dlhandle; in ldma_dev_validate_nic() local
249 if (dladm_open(&dlhandle) != DLADM_STATUS_OK) { in ldma_dev_validate_nic()
254 if (dladm_name2info(dlhandle, nic, &linkid, &flag, &class, in ldma_dev_validate_nic()
262 dladm_close(dlhandle); in ldma_dev_validate_nic()
/titanic_41/usr/src/cmd/fmt/
H A Dfmt.c658 static void *dlhandle = NULL; variable
668 if (dlhandle != NULL) { in _wckind_init()
669 (void) dlclose(dlhandle); in _wckind_init()
670 dlhandle = NULL; in _wckind_init()
679 if ((dlhandle = dlopen(path, RTLD_LAZY)) != NULL) { in _wckind_init()
680 __wckind = (int (*)(wchar_t))dlsym(dlhandle, WCHKIND); in _wckind_init()
683 (void) dlclose(dlhandle); in _wckind_init()
684 dlhandle = NULL; in _wckind_init()
/titanic_41/usr/src/lib/libshare/common/
H A Dplugin.c91 void *dlhandle; in proto_plugin_init() local
124 if ((dlhandle = dlopen(path, RTLD_FIRST|RTLD_LAZY)) == NULL) { in proto_plugin_init()
132 dlsym(dlhandle, "sa_plugin_ops"); in proto_plugin_init()
137 (void) dlclose(dlhandle); in proto_plugin_init()
144 (void) dlclose(dlhandle); in proto_plugin_init()
150 proto->plugin_handle = dlhandle; in proto_plugin_init()
/titanic_41/usr/src/cmd/nscd/
H A Dnscd_nswconfig.c771 void *dlhandle; in _nscd_per_src_lookup() local
780 dlhandle = handle; in _nscd_per_src_lookup()
781 if ((dlhandle = handle) == NULL) { in _nscd_per_src_lookup()
783 dlhandle = dlopen(name, RTLD_LAZY); in _nscd_per_src_lookup()
786 if (dlhandle != NULL) { in _nscd_per_src_lookup()
791 if ((sym = dlsym(dlhandle, name)) == 0) { in _nscd_per_src_lookup()
793 (void) dlclose(dlhandle); in _nscd_per_src_lookup()
795 *delete_privp = dlhandle; in _nscd_per_src_lookup()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dplugins.c72 void *dlhandle; member
124 htmp->dlhandle = handle; in krb5int_open_plugin()
198 if (!err && !sym && (h->dlhandle != NULL)) { in krb5int_get_plugin_sym()
201 sym = dlsym (h->dlhandle, csymname); in krb5int_get_plugin_sym()
269 if (h->dlhandle != NULL) { dlclose(h->dlhandle); } in krb5int_close_plugin()
/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Drcm_subr.c147 if (module->dlhandle) in module_init()
161 if (module->dlhandle) in module_info()
172 if (module->dlhandle) in module_fini()
208 if (module->dlhandle) in module_unload()
209 rcm_module_close(module->dlhandle); in module_unload()
234 module->dlhandle = rcm_module_open(modname); in module_load()
236 if (module->dlhandle == NULL) { in module_load()
246 module->dlhandle, "rcm_mod_init"); in module_load()
248 module->dlhandle, "rcm_mod_fini"); in module_load()
249 module->info = (const char *(*)())dlsym(module->dlhandle, in module_load()
[all …]
H A Drcm_impl.h113 void *dlhandle; member
/titanic_41/usr/src/cmd/fs.d/
H A Dpreenlib.c147 void *dlhandle; in preen_subdev() local
152 dlhandle = dlopen(modname, RTLD_LAZY); in preen_subdev()
153 if (dlhandle == NULL) { in preen_subdev()
158 fptr = (int (*)())dlsym(dlhandle, BUILD_NAME); in preen_subdev()
/titanic_41/usr/src/lib/libproc/common/
H A DPzone.c198 void *dlhandle = dlopen("libzonecfg.so.1", RTLD_LAZY); in i_zone_get_zonepath() local
200 if (dlhandle != NULL && in i_zone_get_zonepath()
201 (sym = dlsym(dlhandle, "zone_get_zonepath")) == NULL) { in i_zone_get_zonepath()
203 (void) dlclose(dlhandle); in i_zone_get_zonepath()
/titanic_41/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsyseventd.h95 void *dlhandle; member
H A Dsyseventd.c1281 mod->dlhandle = dlh; in load_modules()
1409 (void) dlclose(mod->dlhandle); in unload_modules()
/titanic_41/usr/src/lib/librcm/
H A Dlibrcm.c915 void *dlhandle = NULL; in rcm_module_open() local
933 if ((dlhandle = dlopen(modpath, RTLD_LAZY)) != NULL) { in rcm_module_open()
934 return (dlhandle); in rcm_module_open()
952 rcm_module_close(void *dlhandle) in rcm_module_close() argument
954 if (dlclose(dlhandle) == 0) in rcm_module_close()
/titanic_41/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1748 void *dlhandle = NULL; in find_lib_impl() local
1777 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1778 if (dlhandle != NULL) { in find_lib_impl()
1793 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1794 if (dlhandle != NULL) { in find_lib_impl()
1808 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1809 if (dlhandle != NULL) { in find_lib_impl()
1823 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1824 if (dlhandle != NULL) { in find_lib_impl()
1836 (void) dlclose(dlhandle); in find_lib_impl()
/titanic_41/usr/src/cmd/devfsadm/
H A Ddevfsadm_impl.h244 void *dlhandle; member
H A Ddevfsadm.c2120 (void) dlclose(module_head->dlhandle); in unload_modules()
2192 void *dlhandle; in load_module() local
2209 if ((dlhandle = dlopen(epath, RTLD_LAZY)) == NULL) { in load_module()
2218 dlsym(dlhandle, _DEVFSADM_CREATE_REG))) { in load_module()
2228 dlsym(dlhandle, _DEVFSADM_REMOVE_REG))) { in load_module()
2240 module->dlhandle = dlhandle; in load_module()
2243 module->minor_fini = (int (*)())dlsym(dlhandle, MINOR_FINI); in load_module()
2244 module->minor_init = (int (*)())dlsym(dlhandle, MINOR_INIT); in load_module()
/titanic_41/usr/src/lib/libdladm/common/
H A Dlinkprop.c1570 void *dlhandle; in i_dladm_get_zone_dev() local
1574 if ((dlhandle = dlopen("libzonecfg.so.1", RTLD_LAZY)) == NULL) in i_dladm_get_zone_dev()
1577 if ((sym = dlsym(dlhandle, "zone_get_devroot")) == NULL) { in i_dladm_get_zone_dev()
1578 (void) dlclose(dlhandle); in i_dladm_get_zone_dev()
1586 (void) dlclose(dlhandle); in i_dladm_get_zone_dev()