diff options
author | alc <alc@FreeBSD.org> | 2002-05-04 20:23:48 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-05-04 20:23:48 +0000 |
commit | c281c83bd5bf4d6045f082692f107fd7781140a3 (patch) | |
tree | 7846226132e03d6288f141434b92a11b8050e604 /sys/vm/vm_object.h | |
parent | 8ffbddb82f212c7ce9a879dd1387cb7e60f22692 (diff) | |
download | FreeBSD-src-c281c83bd5bf4d6045f082692f107fd7781140a3.zip FreeBSD-src-c281c83bd5bf4d6045f082692f107fd7781140a3.tar.gz |
o Make _vm_object_allocate() and vm_object_allocate() callable
without holding Giant.
o Begin documenting the trivial cases of the locking protocol
on vm_object.
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r-- | sys/vm/vm_object.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 62244a9..97f12de 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -82,6 +82,9 @@ typedef u_char objtype_t; * * vm_object_t Virtual memory object. * + * List of locks + * (c) const until freed + * */ struct vm_object { @@ -93,10 +96,10 @@ struct vm_object { vm_size_t size; /* Object size */ int ref_count; /* How many refs?? */ int shadow_count; /* how many objects that this is a shadow for */ - int hash_rand; /* vm hash table randomizer */ + int hash_rand; /* (c) hash table randomizer */ objtype_t type; /* type of pager */ u_short flags; /* see below */ - u_short pg_color; /* color of first page in obj */ + u_short pg_color; /* (c) color of first page in obj */ u_short paging_in_progress; /* Paging (in or out) so don't collapse or destroy */ int resident_page_count; /* number of resident pages */ struct vm_object *backing_object; /* object that I'm a shadow of */ |