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  | |
| int value | |
| alternatively, you can use private_data as an int  | |
| uint8_t buffer [VFS_FILE_BUFFER_SIZE] | |
| Buffer space, in case a single pointer is not enough.  | |
| } | private_data | 
| File system driver private data, implementation defined.  | |