My Kernel v0.1.0

Opened file description. More...

#include <file.h>

Data Fields

off_t pos
 Current offset into the file.
 
void * priv
 Private data used by the driver.
 
struct vnodevnode
 The file's vnode in the VFS.
 
const struct file_operationsops
 
atomic_t refcount
 Number of references to this file.
 
spinlock_t lock
 Synchronization lock.
 
int flags
 Parameter flags (. More...
 

Detailed Description

Note
This struct is also used by pseudo-filesystems, such as the sockfs, to allocated sockets or other objects. According to the UNIX philosophy, everything is a file.

Field Documentation

◆ flags

int file::flags
See also
man 2 open)

◆ ops

const struct file_operations* file::ops
See also
file_operations

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