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

A file in memory (a vnode): what its inode says, and the kernel's own state. More...

#include <vfs.h>

Data Fields

ino_t ino
size_t size
dev_t dev
dev_t rdev
mode_t mode
uid_t uid
gid_t gid
nlink_t nlink
_time_t atime
_time_t mtime
_time_t ctime
struct fs * fs
void * p
 the filesystem's own data
size_t ref
 how many references there are to it
struct waitq * read_queue
 where its readers and writers sleep
struct waitq * write_queue
struct vm_object * vm_object
 its vm object: its pages, read in (the page cache)
struct pipe * fifo
 the pipe of a FIFO while it is open
struct vnode * mounted
 for a directory that a filesystem is mounted on, that filesystem's root; for a mounted filesystem's root, the directory it's mounted on
struct vnode * covered

Detailed Description

A file in memory (a vnode): what its inode says, and the kernel's own state.

Definition at line 113 of file vfs.h.

Field Documentation

◆ atime

◆ covered

struct vnode* vnode::covered

Definition at line 149 of file vfs.h.

Referenced by dotdot(), vfs_bind(), vfs_lookup_parent(), vfs_mount(), vfs_mount_root_of(), and vfs_vnode_path().

◆ ctime

◆ dev

dev_t vnode::dev

Definition at line 116 of file vfs.h.

Referenced by procfs_proc_maps(), and vfs_stat().

◆ fifo

struct pipe* vnode::fifo

the pipe of a FIFO while it is open

Definition at line 143 of file vfs.h.

Referenced by pipefs_close(), and pipefs_fifo_open().

◆ fs

◆ gid

◆ ino

◆ mode

◆ mounted

struct vnode* vnode::mounted

for a directory that a filesystem is mounted on, that filesystem's root; for a mounted filesystem's root, the directory it's mounted on

Definition at line 148 of file vfs.h.

Referenced by cross_down(), vfs_bind(), vfs_lookup_parent(), and vfs_mount().

◆ mtime

◆ nlink

◆ p

◆ rdev

◆ read_queue

struct waitq* vnode::read_queue

where its readers and writers sleep

Definition at line 136 of file vfs.h.

Referenced by pipefs_end(), ptm_new(), pts_new(), and pty_free().

◆ ref

◆ size

◆ uid

◆ vm_object

struct vm_object* vnode::vm_object

its vm object: its pages, read in (the page cache)

Definition at line 140 of file vfs.h.

Referenced by vm_object_vnode(), vnode_pages_free(), and vnode_pages_update().

◆ write_queue

struct waitq* vnode::write_queue

Definition at line 137 of file vfs.h.

Referenced by pipefs_end(), ptm_new(), pts_new(), and pty_free().


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