1 // SPDX-License-Identifier: GPL-2.0-only
2 /******************************************************************************
3 *******************************************************************************
5 ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
6 ** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
9 *******************************************************************************
10 ******************************************************************************/
12 #include <linux/module.h>
14 #include "dlm_internal.h"
15 #include "lockspace.h"
22 #define CREATE_TRACE_POINTS
23 #include <trace/events/dlm.h>
25 static int __init init_dlm(void)
29 error = dlm_memory_init();
35 error = dlm_lockspace_init();
39 error = dlm_config_init();
43 dlm_register_debugfs();
45 error = dlm_user_init();
49 error = dlm_plock_init();
53 printk("DLM installed\n");
60 dlm_unregister_debugfs();
71 static void __exit exit_dlm(void)
78 dlm_unregister_debugfs();
82 module_init(init_dlm);
83 module_exit(exit_dlm);
85 MODULE_DESCRIPTION("Distributed Lock Manager");
86 MODULE_AUTHOR("Red Hat, Inc.");
87 MODULE_LICENSE("GPL");
89 EXPORT_SYMBOL_GPL(dlm_new_lockspace);
90 EXPORT_SYMBOL_GPL(dlm_release_lockspace);
91 EXPORT_SYMBOL_GPL(dlm_lock);
92 EXPORT_SYMBOL_GPL(dlm_unlock);