From 7c8707f06fd8d5953b7f4721f6625b87d3225f8e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 19 Apr 2024 20:59:03 -0400 Subject: kernel: vm: Document vm_object fields Signed-off-by: Ian Moffett --- sys/include/vm/obj.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/include/vm/obj.h') 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); -- cgit v1.2.3