aboutsummaryrefslogtreecommitdiff
path: root/sys/include/vm
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-19 20:59:03 -0400
committerIan Moffett <ian@osmora.org>2024-04-19 20:59:03 -0400
commit7c8707f06fd8d5953b7f4721f6625b87d3225f8e (patch)
treec94fba06221a58219c263c4a5bdd6d700c4c9e40 /sys/include/vm
parenta6e240d265656408dbe807719dc2f0911c44198f (diff)
kernel: vm: Document vm_object fields
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm')
-rw-r--r--sys/include/vm/obj.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/include/vm/obj.h b/sys/include/vm/obj.h
index d44454e..6129889 100644
--- a/sys/include/vm/obj.h
+++ b/sys/include/vm/obj.h
@@ -41,8 +41,8 @@ struct vm_object {
struct vm_mapspace mapspace; /* Mapspace this object points to */
struct vm_pagerops *pgops; /* Pager operations */
- uint8_t is_anon : 1;
- struct vnode *vnode;
+ uint8_t is_anon : 1; /* Is an anonymous mapping */
+ struct vnode *vnode; /* Only used if `is_anon` is 0 */
};
int vm_obj_init(struct vm_object **res, struct vnode *vnode);