git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: simple read/write lock implementation
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
fs.h
diff --git
a/lunaix-os/includes/lunaix/fs.h
b/lunaix-os/includes/lunaix/fs.h
index 94c6e6bbd918d112bb3d1761a810e2d2ceb8b3e9..d106178bcd5786e4f502ed6a9587e12bd6d5a5ae 100644
(file)
--- a/
lunaix-os/includes/lunaix/fs.h
+++ b/
lunaix-os/includes/lunaix/fs.h
@@
-281,6
+281,9
@@
fsm_get(const char* fs_name);
void
vfs_init();
void
vfs_init();
+void
+vfs_export_attributes();
+
struct v_dnode*
vfs_dcache_lookup(struct v_dnode* parent, struct hstr* str);
struct v_dnode*
vfs_dcache_lookup(struct v_dnode* parent, struct hstr* str);
@@
-330,6
+333,9
@@
vfs_mkdir(const char* path, struct v_dnode** dentry);
int
vfs_open(struct v_dnode* dnode, struct v_file** file);
int
vfs_open(struct v_dnode* dnode, struct v_file** file);
+int
+vfs_pclose(struct v_file* file, pid_t pid);
+
int
vfs_close(struct v_file* file);
int
vfs_close(struct v_file* file);
@@
-372,6
+378,15
@@
vfs_getfd(int fd, struct v_fd** fd_s);
int
vfs_get_dtype(int itype);
int
vfs_get_dtype(int itype);
+void
+vfs_ref_dnode(struct v_dnode* dnode);
+
+void
+vfs_unref_dnode(struct v_dnode* dnode);
+
+int
+vfs_get_path(struct v_dnode* dnode, char* buf, size_t size, int depth);
+
void
pcache_init(struct pcache* pcache);
void
pcache_init(struct pcache* pcache);