/[fuse_dbi]/fuse/trunk/kernel/util.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /fuse/trunk/kernel/util.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations)
Wed Aug 4 11:40:49 2004 UTC (19 years, 8 months ago) by dpavlin
File MIME type: text/plain
File size: 1062 byte(s)
copy CVS to trunk

1 dpavlin 4 /*
2     FUSE: Filesystem in Userspace
3     Copyright (C) 2001-2004 Miklos Szeredi <miklos@szeredi.hu>
4    
5     This program can be distributed under the terms of the GNU GPL.
6     See the file COPYING.
7     */
8    
9     #include "fuse_i.h"
10    
11     #include <linux/init.h>
12     #include <linux/slab.h>
13    
14     MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>");
15     MODULE_DESCRIPTION("Filesystem in Userspace");
16     #ifdef MODULE_LICENSE
17     MODULE_LICENSE("GPL");
18     #endif
19    
20     spinlock_t fuse_lock = SPIN_LOCK_UNLOCKED;
21    
22     int __init fuse_init(void)
23     {
24     int res;
25    
26     printk(KERN_DEBUG "fuse init %s (API version %i.%i)\n",
27     FUSE_VERSION,
28     FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
29    
30     res = fuse_fs_init();
31     if (res)
32     goto err;
33    
34     res = fuse_dev_init();
35     if (res)
36     goto err_fs_cleanup;
37    
38     return 0;
39    
40     err_fs_cleanup:
41     fuse_fs_cleanup();
42     err:
43     return res;
44     }
45    
46     void __exit fuse_exit(void)
47     {
48     printk(KERN_DEBUG "fuse exit\n");
49    
50     fuse_fs_cleanup();
51     fuse_dev_cleanup();
52     }
53    
54     module_init(fuse_init);
55     module_exit(fuse_exit);
56    
57     /*
58     * Local Variables:
59     * indent-tabs-mode: t
60     * c-basic-offset: 8
61     * End:
62     */

  ViewVC Help
Powered by ViewVC 1.1.26