vm_pager.c (12662) | vm_pager.c (12767) |
---|---|
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_pager.c,v 1.18 1995/11/20 12:19:19 phk Exp $ | 64 * $Id: vm_pager.c,v 1.19 1995/12/07 12:48:26 davidg Exp $ |
65 */ 66 67/* 68 * Paging space routine stubs. Emulates a matchmaker-like interface 69 * for builtin pagers. 70 */ 71 72#include <sys/param.h> --- 84 unchanged lines hidden (view full) --- 157 * need to perform page-level validation (e.g. the device pager). 158 */ 159vm_object_t 160vm_pager_allocate(type, handle, size, prot, off) 161 objtype_t type; 162 void *handle; 163 vm_size_t size; 164 vm_prot_t prot; | 65 */ 66 67/* 68 * Paging space routine stubs. Emulates a matchmaker-like interface 69 * for builtin pagers. 70 */ 71 72#include <sys/param.h> --- 84 unchanged lines hidden (view full) --- 157 * need to perform page-level validation (e.g. the device pager). 158 */ 159vm_object_t 160vm_pager_allocate(type, handle, size, prot, off) 161 objtype_t type; 162 void *handle; 163 vm_size_t size; 164 vm_prot_t prot; |
165 vm_offset_t off; | 165 vm_ooffset_t off; |
166{ 167 struct pagerops *ops; 168 169 ops = pagertab[type]; 170 if (ops) 171 return ((*ops->pgo_alloc) (handle, size, prot, off)); 172 return (NULL); 173} --- 25 unchanged lines hidden (view full) --- 199 int *rtvals; 200{ 201 return ((*pagertab[object->type]->pgo_putpages)(object, m, count, sync, rtvals)); 202} 203 204boolean_t 205vm_pager_has_page(object, offset, before, after) 206 vm_object_t object; | 166{ 167 struct pagerops *ops; 168 169 ops = pagertab[type]; 170 if (ops) 171 return ((*ops->pgo_alloc) (handle, size, prot, off)); 172 return (NULL); 173} --- 25 unchanged lines hidden (view full) --- 199 int *rtvals; 200{ 201 return ((*pagertab[object->type]->pgo_putpages)(object, m, count, sync, rtvals)); 202} 203 204boolean_t 205vm_pager_has_page(object, offset, before, after) 206 vm_object_t object; |
207 vm_offset_t offset; | 207 vm_pindex_t offset; |
208 int *before; 209 int *after; 210{ 211 return ((*pagertab[object->type]->pgo_haspage) (object, offset, before, after)); 212} 213 214/* 215 * Called by pageout daemon before going back to sleep. --- 150 unchanged lines hidden --- | 208 int *before; 209 int *after; 210{ 211 return ((*pagertab[object->type]->pgo_haspage) (object, offset, before, after)); 212} 213 214/* 215 * Called by pageout daemon before going back to sleep. --- 150 unchanged lines hidden --- |