Information about an open file. More...
Information about an open file.
Similar to, but not equal to, struct file in Linux
#include <vfs.h>
Data Fields | ||
| const vfs_file_ops_t * | f_op | |
| File operations table. | ||
| vfs_mount_t * | mp | |
| Pointer to mount table entry. | ||
| int | flags | |
| File flags. | ||
| off_t | pos | |
| Current position in the file. | ||
| kernel_pid_t | pid | |
| PID of the process that opened the file. | ||
| union { | ||
| void * ptr | ||
| pointer to private data More... | ||
| int value | ||
| alternatively, you can use private_data as an int More... | ||
| uint8_t buffer [VFS_FILE_BUFFER_SIZE] | ||
| Buffer space, in case a single pointer is not enough. More... | ||
| } | private_data | |
| File system driver private data, implementation defined. | ||
| uint8_t vfs_file_t::buffer[VFS_FILE_BUFFER_SIZE] |
| const vfs_file_ops_t* vfs_file_t::f_op |
| vfs_mount_t* vfs_file_t::mp |
| kernel_pid_t vfs_file_t::pid |
| int vfs_file_t::value |