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 static int __init init_dlm(void)
26 error = dlm_memory_init();
30 error = dlm_lockspace_init();
34 error = dlm_config_init();
38 dlm_register_debugfs();
40 error = dlm_user_init();
44 error = dlm_netlink_init();
48 error = dlm_plock_init();
52 printk("DLM installed\n");
61 dlm_unregister_debugfs();
71 static void __exit exit_dlm(void)
80 dlm_unregister_debugfs();
83 module_init(init_dlm);
84 module_exit(exit_dlm);
86 MODULE_DESCRIPTION("Distributed Lock Manager");
87 MODULE_AUTHOR("Red Hat, Inc.");
88 MODULE_LICENSE("GPL");
90 EXPORT_SYMBOL_GPL(dlm_new_lockspace);
91 EXPORT_SYMBOL_GPL(dlm_release_lockspace);
92 EXPORT_SYMBOL_GPL(dlm_lock);
93 EXPORT_SYMBOL_GPL(dlm_unlock);