|
| static uint64_t | vfs_create (path_t *path, const pathname_t *pathname, namespace_t *ns) |
| |
| static uint64_t | vfs_open_lookup (path_t *path, const pathname_t *pathname, namespace_t *namespace) |
| |
| file_t * | vfs_open (const pathname_t *pathname, process_t *process) |
| | Open a file.
|
| |
| uint64_t | vfs_open2 (const pathname_t *pathname, file_t *files[2], process_t *process) |
| | Open one file, returning two file handles.
|
| |
| file_t * | vfs_openat (const path_t *from, const pathname_t *pathname, process_t *process) |
| | Open a file relative to another path.
|
| |
| uint64_t | vfs_read (file_t *file, void *buffer, uint64_t count) |
| | Read from a file.
|
| |
| uint64_t | vfs_write (file_t *file, const void *buffer, uint64_t count) |
| | Write to a file.
|
| |
| uint64_t | vfs_seek (file_t *file, int64_t offset, seek_origin_t origin) |
| | Seek in a file.
|
| |
| uint64_t | vfs_ioctl (file_t *file, uint64_t request, void *argp, uint64_t size) |
| | Perform an ioctl operation on a file.
|
| |
| void * | vfs_mmap (file_t *file, void *address, uint64_t length, pml_flags_t flags) |
| | Memory map a file.
|
| |
| static uint64_t | vfs_poll_ctx_init (vfs_poll_ctx_t *ctx, poll_file_t *files, uint64_t amount) |
| |
| static uint64_t | vfs_poll_ctx_check_events (vfs_poll_ctx_t *ctx, poll_file_t *files, uint64_t amount) |
| |
| uint64_t | vfs_poll (poll_file_t *files, uint64_t amount, clock_t timeout) |
| | Poll multiple files.
|
| |
| uint64_t | vfs_getdents (file_t *file, dirent_t *buffer, uint64_t count) |
| | Get directory entries from a directory file.
|
| |
| uint64_t | vfs_stat (const pathname_t *pathname, stat_t *buffer, process_t *process) |
| | Get file information.
|
| |
| uint64_t | vfs_link (const pathname_t *oldPathname, const pathname_t *newPathname, process_t *process) |
| | Make the same file appear twice in the filesystem.
|
| |
| uint64_t | vfs_remove (const pathname_t *pathname, process_t *process) |
| | Remove a file or directory.
|
| |
| uint64_t | vfs_id_get (void) |
| | Generates a new unique ID, to be used for any VFS object.
|
| |
| | SYSCALL_DEFINE (SYS_OPEN, fd_t, const char *pathString) |
| |
| | SYSCALL_DEFINE (SYS_OPEN2, uint64_t, const char *pathString, fd_t fds[2]) |
| |
| | SYSCALL_DEFINE (SYS_OPENAT, fd_t, fd_t from, const char *pathString) |
| |
| | SYSCALL_DEFINE (SYS_READ, uint64_t, fd_t fd, void *buffer, uint64_t count) |
| |
| | SYSCALL_DEFINE (SYS_WRITE, uint64_t, fd_t fd, const void *buffer, uint64_t count) |
| |
| | SYSCALL_DEFINE (SYS_SEEK, uint64_t, fd_t fd, int64_t offset, seek_origin_t origin) |
| |
| | SYSCALL_DEFINE (SYS_IOCTL, uint64_t, fd_t fd, uint64_t request, void *argp, uint64_t size) |
| |
| | SYSCALL_DEFINE (SYS_MMAP, void *, fd_t fd, void *address, uint64_t length, prot_t prot) |
| |
| | SYSCALL_DEFINE (SYS_POLL, uint64_t, pollfd_t *fds, uint64_t amount, clock_t timeout) |
| |
| | SYSCALL_DEFINE (SYS_GETDENTS, uint64_t, fd_t fd, dirent_t *buffer, uint64_t count) |
| |
| | SYSCALL_DEFINE (SYS_STAT, uint64_t, const char *pathString, stat_t *buffer) |
| |
| | SYSCALL_DEFINE (SYS_LINK, uint64_t, const char *oldPathString, const char *newPathString) |
| |
| | SYSCALL_DEFINE (SYS_REMOVE, uint64_t, const char *pathString) |
| |