|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
Go to the source code of this file.
Data Structures | |
| struct | file_descriptor |
| struct | fdtable |
Macros | |
| #define | INITIAL_MAX_FDS 64 |
Functions | |
| struct file_descriptor | __attribute__ ((aligned(64))) |
| struct fdtable * | alloc_fdtable () |
| void | free_fdtable (struct fdtable *fdt) |
| struct file_descriptor * | alloc_fd () |
| int | realloc_fdtable (struct fdtable *fdt, uint32_t max_fds) |
Variables | |
| atomic_t | count |
| struct fdtable * | fdt |
| void * | ops |
| uint8_t | mode |
| uint64_t | pos |
| uint32_t | flags |
| vnode_ptr_t | vnode |
| struct fdtable | __attribute__ |
| #define INITIAL_MAX_FDS 64 |
Definition at line 7 of file fd.h.
Referenced by alloc_fdtable().
| struct file_descriptor __attribute__ | ( | (aligned(64)) | ) |
| struct file_descriptor * alloc_fd | ( | ) |
| struct fdtable * alloc_fdtable | ( | ) |
Definition at line 4 of file fd.c.
References INITIAL_MAX_FDS, kalloc(), and table.
Referenced by create_process().
| void free_fdtable | ( | struct fdtable * | fdt | ) |
| struct fdtable __attribute__ |
| struct fdtable* fdt |
Definition at line 1 of file fd.h.
Referenced by realloc_fdtable(), syscall_ioctl(), syscall_read(), syscall_write(), and syscall_writev().
| uint8_t mode |
Definition at line 3 of file fd.h.
Referenced by syscall_open().
| uint64_t pos |
Definition at line 4 of file fd.h.
Referenced by cache_lookup(), delete_dentry(), and print_dentry_tree().
| vnode_ptr_t vnode |