AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
file Struct Reference

An open file (POSIX's "open file description", fs/file.c). More...

#include <vfs.h>

Data Structures

union  [union].__unnamed0__

Data Fields

union  
off_t offset
int flags
struct file_lock * lock
int ref

Detailed Description

An open file (POSIX's "open file description", fs/file.c).

There's one for each open(), pipe(), socket() or accept(), with its offset and status flags, shared by the descriptors that dup() and fork() copy.

Definition at line 157 of file vfs.h.

Field Documentation

◆ @363274363361340240313237344266261037012355002377

◆ flags

◆ lock

struct file_lock* file::lock

Definition at line 167 of file vfs.h.

Referenced by vfs_file_flock(), and vfs_file_lock_release().

◆ offset

◆ ref

int file::ref

Definition at line 170 of file vfs.h.

Referenced by file_new(), file_put(), file_ref(), and sys_fchdir().


The documentation for this struct was generated from the following file:
  • kernel/include/fs/vfs.h