MOS Source Code
Loading...
Searching...
No Matches
vfs.h File Reference
+ Include dependency graph for vfs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

should_inline const file_ops_tfile_get_ops (file_t *file)
 
file_tvfs_do_open_dentry (dentry_t *entry, bool created, bool read, bool write, bool exec, bool truncate)
 Open an directory dentry.
 
void vfs_register_filesystem (filesystem_t *fs)
 
long vfs_mount (const char *device, const char *path, const char *fs, const char *options)
 Mount a filesystem at a given existing path.
 
long vfs_unmount (const char *path)
 Unmount a filesystem at a given path.
 
file_tvfs_openat (int fd, const char *path, open_flags flags)
 Open a file at a given path.
 
long vfs_fstatat (fd_t fd, const char *path, file_stat_t *restrict stat, fstatat_flags flags)
 Stat a file.
 
size_t vfs_readlinkat (fd_t dirfd, const char *path, char *buf, size_t size)
 Read a symbolic link.
 
long vfs_symlink (const char *path, const char *target)
 Create a symbolic link.
 
long vfs_mkdir (const char *path)
 Create a directory.
 
long vfs_rmdir (const char *path)
 
size_t vfs_list_dir (io_t *io, void *buf, size_t size)
 Get the content of a directory.
 
long vfs_chdirat (fd_t dirfd, const char *path)
 Change the current working directory.
 
ssize_t vfs_getcwd (char *buf, size_t size)
 Get the current working directory.
 
long vfs_fchmodat (fd_t fd, const char *path, int perm, int flags)
 Change the permissions of a file.
 
long vfs_unlinkat (fd_t dirfd, const char *path)
 Remove the name of a file, and possibly the file itself.
 
long vfs_fsync (io_t *io, bool sync_metadata, off_t start, off_t end)
 Synchronize a file with the filesystem.
 

Variables

dentry_troot_dentry