Loading...
Searching...
No Matches
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 395 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 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.
 

Field Documentation

◆ buffer

uint8_t vfs_file_t::buffer[VFS_FILE_BUFFER_SIZE]

Buffer space, in case a single pointer is not enough.

Definition at line 404 of file vfs.h.

◆ f_op

const vfs_file_ops_t* vfs_file_t::f_op

File operations table.

Definition at line 396 of file vfs.h.

◆ flags

int vfs_file_t::flags

File flags.

Definition at line 398 of file vfs.h.

◆ mp

vfs_mount_t* vfs_file_t::mp

Pointer to mount table entry.

Definition at line 397 of file vfs.h.

◆ pid

kernel_pid_t vfs_file_t::pid

PID of the process that opened the file.

Definition at line 400 of file vfs.h.

◆ pos

off_t vfs_file_t::pos

Current position in the file.

Definition at line 399 of file vfs.h.

◆ ptr

void* vfs_file_t::ptr

pointer to private data

Definition at line 402 of file vfs.h.

◆ value

int vfs_file_t::value

alternatively, you can use private_data as an int

Definition at line 403 of file vfs.h.


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