vnode_pager.h revision 50477
1117397Skan/* 2117397Skan * Copyright (c) 1990 University of Utah. 3117397Skan * Copyright (c) 1991, 1993 4117397Skan * The Regents of the University of California. All rights reserved. 5117397Skan * 6117397Skan * This code is derived from software contributed to Berkeley by 7117397Skan * the Systems Programming Group of the University of Utah Computer 8117397Skan * Science Department. 9117397Skan * 10117397Skan * Redistribution and use in source and binary forms, with or without 11117397Skan * modification, are permitted provided that the following conditions 12117397Skan * are met: 13117397Skan * 1. Redistributions of source code must retain the above copyright 14117397Skan * notice, this list of conditions and the following disclaimer. 15117397Skan * 2. Redistributions in binary form must reproduce the above copyright 16117397Skan * notice, this list of conditions and the following disclaimer in the 17117397Skan * documentation and/or other materials provided with the distribution. 18117397Skan * 3. All advertising materials mentioning features or use of this software 19169691Skan * must display the following acknowledgement: 20117397Skan * This product includes software developed by the University of 21117397Skan * California, Berkeley and its contributors. 22117397Skan * 4. Neither the name of the University nor the names of its contributors 23117397Skan * may be used to endorse or promote products derived from this software 24117397Skan * without specific prior written permission. 25117397Skan * 26117397Skan * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27117397Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28117397Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29117397Skan * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30117397Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31169691Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32169691Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33169691Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34169691Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35169691Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36117397Skan * SUCH DAMAGE. 37117397Skan * 38117397Skan * @(#)vnode_pager.h 8.1 (Berkeley) 6/11/93 39117397Skan * $FreeBSD: head/sys/vm/vnode_pager.h 50477 1999-08-28 01:08:13Z peter $ 40117397Skan */ 41117397Skan 42117397Skan#ifndef _VNODE_PAGER_ 43117397Skan#define _VNODE_PAGER_ 1 44117397Skan 45117397Skan#ifdef KERNEL 46117397Skanvm_object_t vnode_pager_alloc __P((void *, vm_ooffset_t, vm_prot_t, vm_ooffset_t)); 47117397Skanvoid vnode_pager_freepage __P((vm_page_t m)); 48132720Skanstruct vnode *vnode_pager_lock __P((vm_object_t)); 49117397Skan 50117397Skan/* 51132720Skan * XXX Generic routines; currently called by badly written FS code; these 52132720Skan * XXX should go away soon. 53132720Skan */ 54132720Skanint vnode_pager_generic_getpages __P((struct vnode *vp, vm_page_t *m, 55132720Skan int count, int reqpage)); 56132720Skanint vnode_pager_generic_putpages __P((struct vnode *vp, vm_page_t *m, 57117397Skan int count, boolean_t sync, 58117397Skan int *rtvals)); 59132720Skan#endif 60117397Skan 61117397Skan#endif /* _VNODE_PAGER_ */ 62132720Skan