static int __init init_ntfs_fs(void) { /* Comment this if you trust klogd. There are reasons not to trust it */ #if defined(DEBUG) && !defined(MODULE) console_verbose(); #endif printk(KERN_NOTICE "NTFS version " NTFS_VERSION "\n"); SYSCTL(1); ntfs_debug(DEBUG_OTHER, "registering %s\n",ntfs_fs_type.name); /* add this filesystem to the kernel table of filesystems */ return register_filesystem(&ntfs_fs_type); }
static int __init init_ntfs_fs(void) { /* Comment this if you trust klogd. There are reasons not to trust it */ #if defined(DEBUG) && !defined(MODULE) console_verbose(); #endif printk(KERN_NOTICE "NTFS driver v" NTFS_VERSION " [Flags: R/" #ifdef CONFIG_NTFS_RW "W" #else "O" #endif #ifdef DEBUG " DEBUG" #endif #ifdef MODULE " MODULE" #endif "]\n"); SYSCTL(1); ntfs_debug(DEBUG_OTHER, "registering %s\n", ntfs_fs_type.name); /* Add this filesystem to the kernel table of filesystems. */ return register_filesystem(&ntfs_fs_type); }
static void __exit exit_ntfs_fs(void) { SYSCTL(0); ntfs_debug(DEBUG_OTHER, "unregistering %s\n", ntfs_fs_type.name); unregister_filesystem(&ntfs_fs_type); }
/* Called by kmod just before the kernel removes the module from memory */ void cleanup_module(void) { SYSCTL(0); ntfs_debug(DEBUG_OTHER, "unregistering %s\n",ntfs_fs_type.name); unregister_filesystem(&ntfs_fs_type); }