vfs_file_t Struct Reference

Information about an open file. More...

Detailed Description

Information about an open file.

Similar to, but not equal to, struct file in Linux

Definition at line 279 of file vfs.h.

#include <vfs.h>

Data Fields

const vfs_file_ops_tf_op
 File operations table.
 
vfs_mount_tmp
 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.
 

The documentation for this struct was generated from the following file: