67 static mntopts_t objfs_mntopts = {
68 0,
69 NULL
70 };
71
72 static vfsdef_t vfw = {
73 VFSDEF_VERSION,
74 "objfs",
75 objfs_init,
76 VSW_HASPROTO | VSW_ZMOUNT,
77 &objfs_mntopts,
78 };
79
80 extern struct mod_ops mod_fsops;
81
82 static struct modlfs modlfs = {
83 &mod_fsops, "kernel object filesystem", &vfw
84 };
85
86 static struct modlinkage modlinkage = {
87 MODREV_1, (void *)&modlfs, NULL
88 };
89
90 int
91 _init(void)
92 {
93 return (mod_install(&modlinkage));
94 }
95
96 int
97 _info(struct modinfo *modinfop)
98 {
99 return (mod_info(&modlinkage, modinfop));
100 }
101
102 int
103 _fini(void)
104 {
105 /*
106 * The object filesystem cannot be unloaded.
107 */
|
67 static mntopts_t objfs_mntopts = {
68 0,
69 NULL
70 };
71
72 static vfsdef_t vfw = {
73 VFSDEF_VERSION,
74 "objfs",
75 objfs_init,
76 VSW_HASPROTO | VSW_ZMOUNT,
77 &objfs_mntopts,
78 };
79
80 extern struct mod_ops mod_fsops;
81
82 static struct modlfs modlfs = {
83 &mod_fsops, "kernel object filesystem", &vfw
84 };
85
86 static struct modlinkage modlinkage = {
87 MODREV_1, { (void *)&modlfs, NULL }
88 };
89
90 int
91 _init(void)
92 {
93 return (mod_install(&modlinkage));
94 }
95
96 int
97 _info(struct modinfo *modinfop)
98 {
99 return (mod_info(&modlinkage, modinfop));
100 }
101
102 int
103 _fini(void)
104 {
105 /*
106 * The object filesystem cannot be unloaded.
107 */
|