refactor: kernel space yield() for controllable, flexible task switching
[lunaix-os.git] / lunaix-os / includes / lunaix / fs.h
index 87f259af83dfbc57f2833a6743d3c7c4f2a49df9..fd09e965537d47b1519074c018815c9aabfeea46 100644 (file)
@@ -137,6 +137,7 @@ struct v_dnode
     struct llist_header children;
     struct llist_header siblings;
     struct v_superblock* super_block;
+    uint32_t ref_count;
     struct
     {
         void (*destruct)(struct v_dnode* dnode);
@@ -234,6 +235,9 @@ vfs_i_alloc();
 void
 vfs_i_free(struct v_inode* inode);
 
+int
+vfs_dup_fd(struct v_fd* old, struct v_fd** new);
+
 void
 pcache_init(struct pcache* pcache);