vm_object.h (9548) | vm_object.h (9759) |
---|---|
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 * $Id: vm_object.h,v 1.19 1995/07/13 08:48:36 davidg Exp $ | 64 * $Id: vm_object.h,v 1.20 1995/07/16 13:28:37 davidg Exp $ |
65 */ 66 67/* 68 * Virtual memory object module definitions. 69 */ 70 71#ifndef _VM_OBJECT_ 72#define _VM_OBJECT_ --- 55 unchanged lines hidden (view full) --- 128#define OBJ_WRITEABLE 0x0080 /* object has been made writable */ 129 130 131#ifdef KERNEL 132extern int vm_object_cache_max; 133 134TAILQ_HEAD(object_q, vm_object); 135 | 65 */ 66 67/* 68 * Virtual memory object module definitions. 69 */ 70 71#ifndef _VM_OBJECT_ 72#define _VM_OBJECT_ --- 55 unchanged lines hidden (view full) --- 128#define OBJ_WRITEABLE 0x0080 /* object has been made writable */ 129 130 131#ifdef KERNEL 132extern int vm_object_cache_max; 133 134TAILQ_HEAD(object_q, vm_object); 135 |
136struct object_q vm_object_cached_list; /* list of objects persisting */ 137int vm_object_cached; /* size of cached list */ | 136extern struct object_q vm_object_cached_list; /* list of objects persisting */ 137extern int vm_object_cached; /* size of cached list */ |
138 | 138 |
139struct object_q vm_object_list; /* list of allocated objects */ 140long vm_object_count; /* count of all objects */ | 139extern struct object_q vm_object_list; /* list of allocated objects */ 140extern long vm_object_count; /* count of all objects */ |
141 142 /* lock for object list and count */ 143 | 141 142 /* lock for object list and count */ 143 |
144vm_object_t kernel_object; /* the single kernel object */ 145vm_object_t kmem_object; | 144extern vm_object_t kernel_object; /* the single kernel object */ 145extern vm_object_t kmem_object; |
146 147#endif /* KERNEL */ 148 149#ifdef KERNEL 150static __inline void 151vm_object_pip_wakeup(vm_object_t object) 152{ 153 object->paging_in_progress--; --- 26 unchanged lines hidden --- | 146 147#endif /* KERNEL */ 148 149#ifdef KERNEL 150static __inline void 151vm_object_pip_wakeup(vm_object_t object) 152{ 153 object->paging_in_progress--; --- 26 unchanged lines hidden --- |