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

An anon's reference to a page (an aref). More...

#include <vm.h>

Data Fields

struct vm_page * vm_page
 the page
size_t ref
 how many anons have the aref
uint32_t flags
 its flags (VM_COPY)

Detailed Description

An anon's reference to a page (an aref).

Anons that a fork shares share their arefs, and ref counts them, so the page is copied before one of them writes to it.

Definition at line 107 of file vm.h.

Field Documentation

◆ flags

uint32_t vm_aref::flags

its flags (VM_COPY)

Definition at line 115 of file vm.h.

Referenced by pf_anon(), and pf_present().

◆ ref

size_t vm_aref::ref

how many anons have the aref

Definition at line 112 of file vm.h.

Referenced by pf_anon(), pf_object(), pf_present(), pf_zero(), vm_anon_copy_arefs(), vm_anon_destroy(), and vm_aref_decref().

◆ vm_page

struct vm_page* vm_aref::vm_page

the page

Definition at line 109 of file vm.h.

Referenced by pf_anon(), pf_object(), pf_present(), pf_zero(), vm_anon_destroy(), and vm_aref_eq().


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