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

A vm object: what a mapping's pages come from (a file), and its pages that have been read in. More...

#include <vm.h>

Data Fields

struct hashmap * pages
 its pages that have been read in, by their offset
int type
 its kind (VMOBJ_*)
size_t ref
 how many mappings it has
struct vm_pager * pager
 its pager
void * p
 the pager's own data (a file's vnode)

Detailed Description

A vm object: what a mapping's pages come from (a file), and its pages that have been read in.

Definition at line 132 of file vm.h.

Field Documentation

◆ p

void* vm_object::p

the pager's own data (a file's vnode)

Definition at line 146 of file vm.h.

Referenced by procfs_proc_maps(), vfs_map(), vm_object_decref(), vm_object_incref(), vm_object_vnode(), and vnode_page_in().

◆ pager

struct vm_pager* vm_object::pager

its pager

Definition at line 143 of file vm.h.

Referenced by vm_object_page(), and vm_object_vnode().

◆ pages

struct hashmap* vm_object::pages

its pages that have been read in, by their offset

Definition at line 134 of file vm.h.

Referenced by arch_sigcode_map(), vm_object_page(), vm_object_page_insert(), vm_object_vnode(), vnode_page_in(), vnode_pages_free(), and vnode_pages_update().

◆ ref

size_t vm_object::ref

how many mappings it has

Definition at line 140 of file vm.h.

Referenced by vm_object_decref(), and vm_object_incref().

◆ type

int vm_object::type

its kind (VMOBJ_*)

Definition at line 137 of file vm.h.

Referenced by procfs_proc_maps(), procfs_proc_vmstats(), vfs_map(), vm_object_decref(), vm_object_incref(), and vm_object_vnode().


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