Deleted Added
full compact
vm_object.h (97753) vm_object.h (98824)
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

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

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
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

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

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
64 * $FreeBSD: head/sys/vm/vm_object.h 97753 2002-06-02 23:54:09Z alc $
64 * $FreeBSD: head/sys/vm/vm_object.h 98824 2002-06-25 22:14:06Z iedowse $
65 */
66
67/*
68 * Virtual memory object module definitions.
69 */
70
71#ifndef _VM_OBJECT_
72#define _VM_OBJECT_

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

88 */
89
90struct vm_object {
91 TAILQ_ENTRY(vm_object) object_list; /* list of all objects */
92 TAILQ_HEAD(, vm_object) shadow_head; /* objects that this is a shadow for */
93 TAILQ_ENTRY(vm_object) shadow_list; /* chain of shadow objects */
94 TAILQ_HEAD(, vm_page) memq; /* list of resident pages */
95 int generation; /* generation ID */
65 */
66
67/*
68 * Virtual memory object module definitions.
69 */
70
71#ifndef _VM_OBJECT_
72#define _VM_OBJECT_

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

88 */
89
90struct vm_object {
91 TAILQ_ENTRY(vm_object) object_list; /* list of all objects */
92 TAILQ_HEAD(, vm_object) shadow_head; /* objects that this is a shadow for */
93 TAILQ_ENTRY(vm_object) shadow_list; /* chain of shadow objects */
94 TAILQ_HEAD(, vm_page) memq; /* list of resident pages */
95 int generation; /* generation ID */
96 vm_size_t size; /* Object size */
96 vm_pindex_t size; /* Object size */
97 int ref_count; /* How many refs?? */
98 int shadow_count; /* how many objects that this is a shadow for */
99 int hash_rand; /* (c) hash table randomizer */
100 objtype_t type; /* type of pager */
101 u_short flags; /* see below */
102 u_short pg_color; /* (c) color of first page in obj */
103 u_short paging_in_progress; /* Paging (in or out) so don't collapse or destroy */
104 int resident_page_count; /* number of resident pages */

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

177void vm_object_clear_flag(vm_object_t object, u_short bits);
178void vm_object_pip_add(vm_object_t object, short i);
179void vm_object_pip_subtract(vm_object_t object, short i);
180void vm_object_pip_wakeup(vm_object_t object);
181void vm_object_pip_wakeupn(vm_object_t object, short i);
182void vm_object_pip_sleep(vm_object_t object, char *waitid);
183void vm_object_pip_wait(vm_object_t object, char *waitid);
184
97 int ref_count; /* How many refs?? */
98 int shadow_count; /* how many objects that this is a shadow for */
99 int hash_rand; /* (c) hash table randomizer */
100 objtype_t type; /* type of pager */
101 u_short flags; /* see below */
102 u_short pg_color; /* (c) color of first page in obj */
103 u_short paging_in_progress; /* Paging (in or out) so don't collapse or destroy */
104 int resident_page_count; /* number of resident pages */

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

177void vm_object_clear_flag(vm_object_t object, u_short bits);
178void vm_object_pip_add(vm_object_t object, short i);
179void vm_object_pip_subtract(vm_object_t object, short i);
180void vm_object_pip_wakeup(vm_object_t object);
181void vm_object_pip_wakeupn(vm_object_t object, short i);
182void vm_object_pip_sleep(vm_object_t object, char *waitid);
183void vm_object_pip_wait(vm_object_t object, char *waitid);
184
185vm_object_t vm_object_allocate (objtype_t, vm_size_t);
186void _vm_object_allocate (objtype_t, vm_size_t, vm_object_t);
185vm_object_t vm_object_allocate (objtype_t, vm_pindex_t);
186void _vm_object_allocate (objtype_t, vm_pindex_t, vm_object_t);
187boolean_t vm_object_coalesce (vm_object_t, vm_pindex_t, vm_size_t, vm_size_t);
188void vm_object_collapse (vm_object_t);
189void vm_object_deallocate (vm_object_t);
190void vm_object_terminate (vm_object_t);
191void vm_object_vndeallocate (vm_object_t);
192void vm_object_set_writeable_dirty (vm_object_t);
193void vm_object_init (void);
194void vm_object_page_clean (vm_object_t, vm_pindex_t, vm_pindex_t, boolean_t);

--- 12 unchanged lines hidden ---
187boolean_t vm_object_coalesce (vm_object_t, vm_pindex_t, vm_size_t, vm_size_t);
188void vm_object_collapse (vm_object_t);
189void vm_object_deallocate (vm_object_t);
190void vm_object_terminate (vm_object_t);
191void vm_object_vndeallocate (vm_object_t);
192void vm_object_set_writeable_dirty (vm_object_t);
193void vm_object_init (void);
194void vm_object_page_clean (vm_object_t, vm_pindex_t, vm_pindex_t, boolean_t);

--- 12 unchanged lines hidden ---