Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_deffinder.c65 void *dlhandle; in SO_per_src_lookup() local
73 if ((dlhandle = dlopen(name, RTLD_LAZY)) != 0) { in SO_per_src_lookup()
75 if ((sym = dlsym(dlhandle, name)) == 0) { in SO_per_src_lookup()
76 (void) dlclose(dlhandle); in SO_per_src_lookup()
78 *delete_privp = dlhandle; in SO_per_src_lookup()
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_common.c95 void *dlhandle; in __dh_generic_initialize() local
99 if ((dlhandle = dlopen(DHLIB, RTLD_NOW)) == NULL) { in __dh_generic_initialize()
105 dlsym(dlhandle, DH_MECH_SYM); in __dh_generic_initialize()
H A Ddh_template.c111 void *dlhandle = dlopen(0, RTLD_NOLOAD); in dh_getpublickey() local
112 if (dlhandle == 0) { in dh_getpublickey()
118 dlsym(dlhandle, NIS_SYMBOL); in dh_getpublickey()
/illumos-gate/usr/src/lib/libreparse/common/
H A Dfs_reparse_lib.c317 void *dlhandle; in rp_plugin_init() local
346 if ((dlhandle = dlopen(path, RTLD_FIRST|RTLD_LAZY)) == NULL) in rp_plugin_init()
350 dlsym(dlhandle, "rp_plugin_ops"); in rp_plugin_init()
355 (void) dlclose(dlhandle); in rp_plugin_init()
361 (void) dlclose(dlhandle); in rp_plugin_init()
370 proto->plugin_handle = dlhandle; in rp_plugin_init()
/illumos-gate/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;
/illumos-gate/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()
/illumos-gate/usr/src/cmd/fmt/
H A Dfmt.c659 static void *dlhandle = NULL; variable
669 if (dlhandle != NULL) { in _wckind_init()
670 (void) dlclose(dlhandle); in _wckind_init()
671 dlhandle = NULL; in _wckind_init()
680 if ((dlhandle = dlopen(path, RTLD_LAZY)) != NULL) { in _wckind_init()
681 __wckind = (int (*)(wchar_t))dlsym(dlhandle, WCHKIND); in _wckind_init()
684 (void) dlclose(dlhandle); in _wckind_init()
685 dlhandle = NULL; in _wckind_init()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_subr.c145 if (module->dlhandle) in module_init()
159 if (module->dlhandle) in module_info()
170 if (module->dlhandle) in module_fini()
206 if (module->dlhandle) in module_unload()
207 rcm_module_close(module->dlhandle); in module_unload()
234 if (module->dlhandle == NULL) { in module_load()
244 module->dlhandle, "rcm_mod_init"); in module_load()
258 module->dlhandle = NULL; in module_load()
265 if (module->dlhandle) in module_load()
315 if (module->dlhandle) in module_load()
[all …]
H A Drcm_impl.h111 void *dlhandle; member
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsyseventd.h93 void *dlhandle; member
H A Dsyseventd.c1281 mod->dlhandle = dlh; in load_modules()
1408 (void) dlclose(mod->dlhandle); in unload_modules()
/illumos-gate/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1754 void *dlhandle = NULL; in find_lib_impl() local
1783 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1784 if (dlhandle != NULL) { in find_lib_impl()
1799 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1800 if (dlhandle != NULL) { in find_lib_impl()
1814 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1815 if (dlhandle != NULL) { in find_lib_impl()
1829 dlhandle = dlopen(lib, RTLD_LAZY); in find_lib_impl()
1830 if (dlhandle != NULL) { in find_lib_impl()
1842 (void) dlclose(dlhandle); in find_lib_impl()
/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm.c912 void *dlhandle = NULL; in rcm_module_open() local
930 if ((dlhandle = dlopen(modpath, RTLD_LAZY)) != NULL) { in rcm_module_open()
931 return (dlhandle); in rcm_module_open()
949 rcm_module_close(void *dlhandle) in rcm_module_close() argument
951 if (dlclose(dlhandle) == 0) in rcm_module_close()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm_impl.h244 void *dlhandle; member
H A Ddevfsadm.c2132 (void) dlclose(module_head->dlhandle); in unload_modules()
2204 void *dlhandle; in load_module() local
2221 if ((dlhandle = dlopen(epath, RTLD_LAZY)) == NULL) { in load_module()
2230 dlsym(dlhandle, _DEVFSADM_CREATE_REG))) { in load_module()
2240 dlsym(dlhandle, _DEVFSADM_REMOVE_REG))) { in load_module()
2252 module->dlhandle = dlhandle; in load_module()
2255 module->minor_fini = (int (*)())dlsym(dlhandle, MINOR_FINI); in load_module()
2256 module->minor_init = (int (*)())dlsym(dlhandle, MINOR_INIT); in load_module()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlinkprop.c1762 void *dlhandle; in i_dladm_get_zone_dev() local
1766 if ((dlhandle = dlopen("libzonecfg.so.1", RTLD_LAZY)) == NULL) in i_dladm_get_zone_dev()
1769 if ((sym = dlsym(dlhandle, "zone_get_devroot")) == NULL) { in i_dladm_get_zone_dev()
1770 (void) dlclose(dlhandle); in i_dladm_get_zone_dev()
1778 (void) dlclose(dlhandle); in i_dladm_get_zone_dev()