vm_object.h (d3b9828d0d5c375d438e6a76493640c4b018e7a1) vm_object.h (7667839a7ec4354de9984d411c45cbacf9fe8e3b)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 104 unchanged lines hidden (view full) ---

113 u_short flags; /* see below */
114 u_short pg_color; /* (c) color of first page in obj */
115 u_int paging_in_progress; /* Paging (in or out) so don't collapse or destroy */
116 int resident_page_count; /* number of resident pages */
117 struct vm_object *backing_object; /* object that I'm a shadow of */
118 vm_ooffset_t backing_object_offset;/* Offset in backing object */
119 TAILQ_ENTRY(vm_object) pager_object_list; /* list of all objects of this pager type */
120 LIST_HEAD(, vm_reserv) rvq; /* list of reservations */
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 104 unchanged lines hidden (view full) ---

113 u_short flags; /* see below */
114 u_short pg_color; /* (c) color of first page in obj */
115 u_int paging_in_progress; /* Paging (in or out) so don't collapse or destroy */
116 int resident_page_count; /* number of resident pages */
117 struct vm_object *backing_object; /* object that I'm a shadow of */
118 vm_ooffset_t backing_object_offset;/* Offset in backing object */
119 TAILQ_ENTRY(vm_object) pager_object_list; /* list of all objects of this pager type */
120 LIST_HEAD(, vm_reserv) rvq; /* list of reservations */
121 struct vm_radix cache; /* (o + f) root of the cache page radix trie */
122 void *handle;
123 union {
124 /*
125 * VNode pager
126 *
127 * vnp_size - current size of file
128 */
129 struct {

--- 155 unchanged lines hidden (view full) ---

285
286void vm_object_clear_flag(vm_object_t object, u_short bits);
287void vm_object_pip_add(vm_object_t object, short i);
288void vm_object_pip_subtract(vm_object_t object, short i);
289void vm_object_pip_wakeup(vm_object_t object);
290void vm_object_pip_wakeupn(vm_object_t object, short i);
291void vm_object_pip_wait(vm_object_t object, char *waitid);
292
121 void *handle;
122 union {
123 /*
124 * VNode pager
125 *
126 * vnp_size - current size of file
127 */
128 struct {

--- 155 unchanged lines hidden (view full) ---

284
285void vm_object_clear_flag(vm_object_t object, u_short bits);
286void vm_object_pip_add(vm_object_t object, short i);
287void vm_object_pip_subtract(vm_object_t object, short i);
288void vm_object_pip_wakeup(vm_object_t object);
289void vm_object_pip_wakeupn(vm_object_t object, short i);
290void vm_object_pip_wait(vm_object_t object, char *waitid);
291
293static __inline boolean_t
294vm_object_cache_is_empty(vm_object_t object)
295{
296
297 return (vm_radix_is_empty(&object->cache));
298}
299
300void umtx_shm_object_init(vm_object_t object);
301void umtx_shm_object_terminated(vm_object_t object);
302extern int umtx_shm_vnobj_persistent;
303
304vm_object_t vm_object_allocate (objtype_t, vm_pindex_t);
305boolean_t vm_object_coalesce(vm_object_t, vm_ooffset_t, vm_size_t, vm_size_t,
306 boolean_t);
307void vm_object_collapse (vm_object_t);

--- 27 unchanged lines hidden ---
292void umtx_shm_object_init(vm_object_t object);
293void umtx_shm_object_terminated(vm_object_t object);
294extern int umtx_shm_vnobj_persistent;
295
296vm_object_t vm_object_allocate (objtype_t, vm_pindex_t);
297boolean_t vm_object_coalesce(vm_object_t, vm_ooffset_t, vm_size_t, vm_size_t,
298 boolean_t);
299void vm_object_collapse (vm_object_t);

--- 27 unchanged lines hidden ---