Home
last modified time | relevance | path

Searched refs:mod_lock (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_module.c104 (void) pthread_mutex_lock(&mp->mod_lock); in fmd_module_start()
115 ASSERT(MUTEX_HELD(&mp->mod_lock)); in fmd_module_start()
119 (void) pthread_mutex_unlock(&mp->mod_lock); in fmd_module_start()
166 (void) pthread_mutex_lock(&mp->mod_lock); in fmd_module_start()
171 (void) pthread_mutex_unlock(&mp->mod_lock); in fmd_module_start()
188 (void) pthread_mutex_init(&mp->mod_lock, NULL); in fmd_module_create()
280 (void) pthread_mutex_lock(&mp->mod_lock); in fmd_module_create()
286 (void) pthread_mutex_unlock(&mp->mod_lock); in fmd_module_create()
298 (void) pthread_cond_wait(&mp->mod_cv, &mp->mod_lock); in fmd_module_create()
306 (void) pthread_mutex_unlock(&mp->mod_lock); in fmd_module_create()
[all …]
H A Dfmd_builtin.c58 (void) pthread_mutex_unlock(&mp->mod_lock); in bltin_init()
68 (void) pthread_mutex_lock(&mp->mod_lock); in bltin_init()
H A Dfmd_rtld.c66 (void) pthread_mutex_unlock(&mp->mod_lock); in rtld_init()
76 (void) pthread_mutex_lock(&mp->mod_lock); in rtld_init()
H A Dfmd.c517 (void) pthread_mutex_init(&dp->d_rmod->mod_lock, NULL); in fmd_create()
533 (void) pthread_mutex_lock(&dp->d_rmod->mod_lock); in fmd_create()
535 (void) pthread_mutex_unlock(&dp->d_rmod->mod_lock); in fmd_create()
645 (void) pthread_mutex_lock(&dp->d_rmod->mod_lock); in fmd_destroy()
647 (void) pthread_mutex_unlock(&dp->d_rmod->mod_lock); in fmd_destroy()
H A Dfmd_module.h101 pthread_mutex_t mod_lock; /* lock for mod_cv/owner/flags/refs */ member
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_root.c81 mutex_enter(&mod_lock); in objfs_root_do_lookup()
90 mutex_exit(&mod_lock); in objfs_root_do_lookup()
93 mutex_enter(&mod_lock); in objfs_root_do_lookup()
98 mutex_exit(&mod_lock); in objfs_root_do_lookup()
114 mutex_enter(&mod_lock); in objfs_root_do_readdir()
119 mutex_exit(&mod_lock); in objfs_root_do_readdir()
136 mutex_exit(&mod_lock); in objfs_root_do_readdir()
143 mutex_exit(&mod_lock); in objfs_root_do_readdir()
H A Dobjfs_common.c97 mutex_enter(&mod_lock); in objfs_nobjs()
105 mutex_exit(&mod_lock); in objfs_nobjs()
/illumos-gate/usr/src/uts/common/os/
H A Dmodctl.c125 kmutex_t mod_lock; /* protects &modules insert linkage, */ variable
2691 mutex_enter(&mod_lock); in modrload()
2693 mutex_exit(&mod_lock); in modrload()
2841 mutex_enter(&mod_lock); in modunrload()
2845 mutex_exit(&mod_lock); in modunrload()
2956 mutex_enter(&mod_lock); in mod_hold_stub()
2967 mutex_exit(&mod_lock); in mod_hold_stub()
2991 mutex_exit(&mod_lock); in mod_hold_stub()
2994 mutex_exit(&mod_lock); in mod_hold_stub()
3051 mutex_enter(&mod_lock); in mod_hold_stub()
[all …]
H A Dmodsubr.c351 mutex_enter(&mod_lock); in mod_getctl()
355 mutex_exit(&mod_lock); in mod_getctl()
359 mutex_exit(&mod_lock); in mod_getctl()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_mod.c65 mutex_enter(&mod_lock); in kctl_mod_loaded()
67 mutex_exit(&mod_lock); in kctl_mod_loaded()
75 mutex_exit(&mod_lock); in kctl_mod_loaded()
H A Dkctl_dmod.c200 mutex_enter(&mod_lock); in kctl_dmod_load()
205 mutex_exit(&mod_lock); in kctl_dmod_load()
H A Dkctl_main.c307 mutex_enter(&mod_lock); in kctl_startup_boot()
319 mutex_exit(&mod_lock); in kctl_startup_boot()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_subr.c36 static mutex_t mod_lock; /* protects module list */ variable
333 (void) mutex_lock(&mod_lock); in cli_module_hold()
344 (void) mutex_unlock(&mod_lock); in cli_module_hold()
352 (void) mutex_unlock(&mod_lock); in cli_module_hold()
363 (void) mutex_unlock(&mod_lock); in cli_module_hold()
378 (void) mutex_lock(&mod_lock); in cli_module_rele()
380 (void) mutex_unlock(&mod_lock); in cli_module_rele()
402 (void) mutex_unlock(&mod_lock); in cli_module_rele()
1522 (void) mutex_lock(&mod_lock); in rsrc_mod_info()
1530 (void) mutex_unlock(&mod_lock); in rsrc_mod_info()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_admin.c40 static mutex_t mod_lock = DEFAULTMUTEX; variable
109 (void) mutex_lock(&mod_lock); in _nscd_server_setadmin()
232 (void) mutex_unlock(&mod_lock); in _nscd_server_setadmin()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dcms.c155 mutex_enter(&mod_lock); in cms_hold()
157 mutex_exit(&mod_lock); in cms_hold()
166 mutex_enter(&mod_lock); in cms_rele()
168 mutex_exit(&mod_lock); in cms_rele()
H A Dcmi.c162 mutex_enter(&mod_lock); in cmi_hold()
164 mutex_exit(&mod_lock); in cmi_hold()
173 mutex_enter(&mod_lock); in cmi_rele()
175 mutex_exit(&mod_lock); in cmi_rele()
/illumos-gate/usr/src/uts/i86pc/io/acpi_drv/
H A Dacpi_video.c832 mutex_enter(&mod_lock); in hotkey_init()
835 mutex_exit(&mod_lock); in hotkey_init()
870 mutex_enter(&mod_lock); in hotkey_fini()
873 mutex_exit(&mod_lock); in hotkey_fini()
/illumos-gate/usr/src/uts/common/ctf/
H A Dctf_mod.c164 ASSERT(MUTEX_HELD(&mod_lock)); in ctf_modopen()
/illumos-gate/usr/src/uts/sparc/os/
H A Dsyscall.c971 mutex_enter(&mod_lock); in lock_syscall()
974 mutex_exit(&mod_lock); in lock_syscall()
983 mutex_exit(&mod_lock); in lock_syscall()
/illumos-gate/usr/src/uts/intel/os/
H A Dsyscall.c1139 mutex_enter(&mod_lock); in lock_syscall()
1142 mutex_exit(&mod_lock); in lock_syscall()
1150 mutex_exit(&mod_lock); in lock_syscall()
/illumos-gate/usr/src/uts/common/io/
H A Dbofi.c453 mutex_enter(&mod_lock); in reset_bus_ops()
461 mutex_exit(&mod_lock); in reset_bus_ops()
466 mutex_exit(&mod_lock); in reset_bus_ops()
472 mutex_exit(&mod_lock); in reset_bus_ops()
481 mutex_exit(&mod_lock); in reset_bus_ops()
497 mutex_exit(&mod_lock); in reset_bus_ops()
501 mutex_exit(&mod_lock); in reset_bus_ops()
521 mutex_enter(&mod_lock); in modify_bus_ops()
529 mutex_exit(&mod_lock); in modify_bus_ops()
534 mutex_exit(&mod_lock); in modify_bus_ops()
[all …]
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c2132 mutex_enter(&mod_lock); in module_assign()
2135 mutex_exit(&mod_lock); in module_assign()
2155 mutex_enter(&mod_lock); in kobj_unload_module()
2157 mutex_exit(&mod_lock); in kobj_unload_module()
3130 mutex_enter(&mod_lock); in kobj_getsymvalue()
3140 mutex_exit(&mod_lock); in kobj_getsymvalue()
3164 mutex_enter(&mod_lock); in kobj_getsymname()
3172 mutex_exit(&mod_lock); in kobj_getsymname()
4278 ASSERT(MUTEX_HELD(&mod_lock)); in kobj_textwin_alloc()
/illumos-gate/usr/src/uts/common/sys/
H A Dmodctl.h546 extern kmutex_t mod_lock;
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c8402 mutex_enter(&mod_lock); in dtrace_unregister()
8416 mutex_exit(&mod_lock); in dtrace_unregister()
8450 mutex_exit(&mod_lock); in dtrace_unregister()
8526 mutex_exit(&mod_lock); in dtrace_unregister()
8840 mutex_enter(&mod_lock); in dtrace_probe_provide()
8851 mutex_exit(&mod_lock); in dtrace_probe_provide()
15851 mutex_enter(&mod_lock); in dtrace_module_loaded()
15862 mutex_exit(&mod_lock); in dtrace_module_loaded()
15907 mutex_enter(&mod_lock); in dtrace_module_unloaded()
15916 mutex_exit(&mod_lock); in dtrace_module_unloaded()
[all …]