feat: (devfs) a new filesystem for device exposure.
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / twifs.h
index f2d6b15bf2197eae356b7165c81f93bbb1e30bc9..f4614d8f72d4fe4e9f3a1a42664f059f1ed4cabc 100644 (file)
@@ -5,19 +5,22 @@
 
 struct twifs_node
 {
 
 struct twifs_node
 {
-    struct v_inode* inode;
     struct hstr name;
     struct hstr name;
+    inode_t ino_id;
     void* data;
     uint32_t itype;
     struct llist_header children;
     struct llist_header siblings;
     struct
     {
     void* data;
     uint32_t itype;
     struct llist_header children;
     struct llist_header siblings;
     struct
     {
-        int (*write)(struct v_file* file,
+        int (*write)(struct v_inode* inode,
                      void* buffer,
                      size_t len,
                      size_t fpos);
                      void* buffer,
                      size_t len,
                      size_t fpos);
-        int (*read)(struct v_file* file, void* buffer, size_t len, size_t fpos);
+        int (*read)(struct v_inode* inode,
+                    void* buffer,
+                    size_t len,
+                    size_t fpos);
     } ops;
 };
 
     } ops;
 };