vnode_pager.h revision 5455
1277323Sdim/* 2277323Sdim * Copyright (c) 1990 University of Utah. 3277323Sdim * Copyright (c) 1991, 1993 4277323Sdim * The Regents of the University of California. All rights reserved. 5277323Sdim * 6277323Sdim * This code is derived from software contributed to Berkeley by 7277323Sdim * the Systems Programming Group of the University of Utah Computer 8277323Sdim * Science Department. 9277323Sdim * 10277323Sdim * Redistribution and use in source and binary forms, with or without 11277323Sdim * modification, are permitted provided that the following conditions 12277323Sdim * are met: 13277323Sdim * 1. Redistributions of source code must retain the above copyright 14277323Sdim * notice, this list of conditions and the following disclaimer. 15277323Sdim * 2. Redistributions in binary form must reproduce the above copyright 16277323Sdim * notice, this list of conditions and the following disclaimer in the 17277323Sdim * documentation and/or other materials provided with the distribution. 18309124Sdim * 3. All advertising materials mentioning features or use of this software 19277323Sdim * must display the following acknowledgement: 20277323Sdim * This product includes software developed by the University of 21277323Sdim * California, Berkeley and its contributors. 22277323Sdim * 4. Neither the name of the University nor the names of its contributors 23277323Sdim * may be used to endorse or promote products derived from this software 24277323Sdim * without specific prior written permission. 25277323Sdim * 26277323Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27277323Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28277323Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29277323Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30277323Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31277323Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32277323Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33277323Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34288943Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35288943Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36277323Sdim * SUCH DAMAGE. 37277323Sdim * 38277323Sdim * @(#)vnode_pager.h 8.1 (Berkeley) 6/11/93 39277323Sdim * $Id: vnode_pager.h,v 1.3 1994/08/02 07:55:43 davidg Exp $ 40288943Sdim */ 41288943Sdim 42288943Sdim#ifndef _VNODE_PAGER_ 43288943Sdim#define _VNODE_PAGER_ 1 44288943Sdim 45288943Sdim/* 46288943Sdim * VNODE pager private data. 47277323Sdim */ 48277323Sdimstruct vnpager { 49277323Sdim int vnp_flags; /* flags */ 50309124Sdim struct vnode *vnp_vp; /* vnode */ 51309124Sdim vm_size_t vnp_size; /* vnode current size */ 52277323Sdim}; 53277323Sdimtypedef struct vnpager *vn_pager_t; 54277323Sdim 55277323Sdim#define VN_PAGER_NULL ((vn_pager_t)0) 56277323Sdim 57277323Sdim#endif /* _VNODE_PAGER_ */ 58277323Sdim