Searched refs:module_mutex (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/kernel/
H A Dmodule.c101 DEFINE_MUTEX(module_mutex); variable
102 EXPORT_SYMBOL_GPL(module_mutex); variable
157 * Protected by module_mutex. */
431 * (optional) module which owns it. Needs preempt disabled or module_mutex. */ find_symbol()
457 /* Search for module by name: must hold module_mutex. */ find_module_all()
694 /* Module a uses b: caller needs module_mutex() */ ref_module()
721 mutex_lock(&module_mutex); module_unload_free()
730 mutex_unlock(&module_mutex); module_unload_free()
810 if (mutex_lock_interruptible(&module_mutex) != 0) SYSCALL_DEFINE2()
848 mutex_unlock(&module_mutex); SYSCALL_DEFINE2()
862 mutex_unlock(&module_mutex); SYSCALL_DEFINE2()
1236 * The module_mutex should not be a heavily contended lock; resolve_symbol()
1241 mutex_lock(&module_mutex); resolve_symbol()
1263 mutex_unlock(&module_mutex); resolve_symbol()
1517 mutex_lock(&module_mutex); add_usage_links()
1522 mutex_unlock(&module_mutex); add_usage_links()
1531 mutex_lock(&module_mutex); del_usage_links()
1534 mutex_unlock(&module_mutex); del_usage_links()
1774 mutex_lock(&module_mutex); set_all_modules_text_rw()
1789 mutex_unlock(&module_mutex); set_all_modules_text_rw()
1797 mutex_lock(&module_mutex); set_all_modules_text_ro()
1812 mutex_unlock(&module_mutex); set_all_modules_text_ro()
1842 mutex_lock(&module_mutex); free_module()
1844 mutex_unlock(&module_mutex); free_module()
1859 mutex_lock(&module_mutex); free_module()
1866 mutex_unlock(&module_mutex); free_module()
1906 * You must hold the module_mutex.
2415 mutex_lock(&module_mutex); module_alloc_update_bounds()
2421 mutex_unlock(&module_mutex); module_alloc_update_bounds()
3034 * The module_mutex should not be a heavily contended lock; finished_loading()
3039 mutex_lock(&module_mutex); finished_loading()
3043 mutex_unlock(&module_mutex); finished_loading()
3136 mutex_lock(&module_mutex); do_init_module()
3157 mutex_unlock(&module_mutex); do_init_module()
3197 mutex_lock(&module_mutex); add_unformed_module()
3203 mutex_unlock(&module_mutex); add_unformed_module()
3217 mutex_unlock(&module_mutex); add_unformed_module()
3226 mutex_lock(&module_mutex); complete_formation()
3233 /* This relies on module_mutex for list integrity. */ complete_formation()
3251 mutex_unlock(&module_mutex); complete_formation()
3258 mutex_unlock(&module_mutex); complete_formation()
3390 /* module_bug_cleanup needs module_mutex protection */ load_module()
3391 mutex_lock(&module_mutex); load_module()
3393 mutex_unlock(&module_mutex); load_module()
3413 mutex_lock(&module_mutex); load_module()
3419 mutex_unlock(&module_mutex); load_module()
3695 /* We hold module_mutex: no need for rcu_dereference_sched */ module_kallsyms_on_each_symbol()
3738 mutex_lock(&module_mutex); m_start()
3749 mutex_unlock(&module_mutex); m_stop()
H A Dkprobes.c534 mutex_lock(&module_mutex); kprobe_optimizer()
557 mutex_unlock(&module_mutex); kprobe_optimizer()
/linux-4.1.27/kernel/livepatch/
H A Dcore.c97 mutex_lock(&module_mutex); klp_find_object_module()
114 mutex_unlock(&module_mutex); klp_find_object_module()
182 mutex_lock(&module_mutex); klp_find_object_symbol()
184 mutex_unlock(&module_mutex); klp_find_object_symbol()
226 mutex_lock(&module_mutex); klp_verify_vmlinux_symbol()
228 mutex_unlock(&module_mutex); klp_verify_vmlinux_symbol()
/linux-4.1.27/include/linux/
H A Dmodule.h306 /* Protected by RCU and/or module_mutex: use rcu_dereference() */
376 extern struct mutex module_mutex;
411 /* Search for module by name: must hold module_mutex. */
/linux-4.1.27/arch/arc/kernel/
H A Dunwind.c361 /* Must be called with module_mutex held. */ unwind_add_table()
423 /* Must be called with module_mutex held. */ unwind_remove_table()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_fb_helper.c1827 mutex_lock(&module_mutex); drm_fb_helper_modinit()
1829 mutex_unlock(&module_mutex); drm_fb_helper_modinit()

Completed in 227 milliseconds