refactor: one more step towards arch-agnostic design
[lunaix-os.git] / lunaix-os / kernel / fs / twifs / twifs.c
index 5cf47eeff413926fbc6ce87c83580fa38b493c6f..729b5f770f7ea164d91f24d7b78e553433b1aa44 100644 (file)
@@ -242,6 +242,17 @@ twifs_init()
     fs_root = twifs_dir_node(NULL, NULL, 0, 0);
 }
 
+void
+twifs_register_plugins()
+{
+    int i = 0;
+    ptr_t init_twifs_plugin_fn;
+    ldga_foreach(twiplugin_inits, ptr_t, i, init_twifs_plugin_fn)
+    {
+        ((void (*)())init_twifs_plugin_fn)();
+    }
+}
+
 int
 __twifs_twimap_file_read(struct v_inode* inode,
                          void* buf,