[BACK]Return to uvm_aobj.h CVS log [TXT][DIR] Up to [local] / sys / uvm

Annotation of sys/uvm/uvm_aobj.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: uvm_aobj.h,v 1.8 2002/03/14 01:27:18 millert Exp $    */
                      2: /*     $NetBSD: uvm_aobj.h,v 1.10 2000/01/11 06:57:49 chs Exp $        */
                      3:
                      4: /*
                      5:  * Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
                      6:  *                    Washington University.
                      7:  * All rights reserved.
                      8:  *
                      9:  * Redistribution and use in source and binary forms, with or without
                     10:  * modification, are permitted provided that the following conditions
                     11:  * are met:
                     12:  * 1. Redistributions of source code must retain the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer.
                     14:  * 2. Redistributions in binary form must reproduce the above copyright
                     15:  *    notice, this list of conditions and the following disclaimer in the
                     16:  *    documentation and/or other materials provided with the distribution.
                     17:  * 3. All advertising materials mentioning features or use of this software
                     18:  *    must display the following acknowledgement:
                     19:  *      This product includes software developed by Charles D. Cranor and
                     20:  *      Washington University.
                     21:  * 4. The name of the author may not be used to endorse or promote products
                     22:  *    derived from this software without specific prior written permission.
                     23:  *
                     24:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     25:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     26:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     27:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     28:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     29:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     30:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     31:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     32:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     33:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     34:  *
                     35:  * from: Id: uvm_aobj.h,v 1.1.2.4 1998/02/06 05:19:28 chs Exp
                     36:  */
                     37: /*
                     38:  * uvm_aobj.h: anonymous memory uvm_object pager
                     39:  *
                     40:  * author: Chuck Silvers <chuq@chuq.com>
                     41:  * started: Jan-1998
                     42:  *
                     43:  * - design mostly from Chuck Cranor
                     44:  */
                     45:
                     46: #ifndef _UVM_UVM_AOBJ_H_
                     47: #define _UVM_UVM_AOBJ_H_
                     48:
                     49: /*
                     50:  * flags
                     51:  */
                     52:
                     53: /* flags for uao_create: can only be used one time (at bootup) */
                     54: #define UAO_FLAG_KERNOBJ       0x1     /* create kernel object */
                     55: #define UAO_FLAG_KERNSWAP      0x2     /* enable kernel swap */
                     56:
                     57: /* internal flags */
                     58: #define UAO_FLAG_KILLME                0x4     /* aobj should die when last released
                     59:                                         * page is no longer PG_BUSY ... */
                     60: #define UAO_FLAG_NOSWAP                0x8     /* aobj can't swap (kernel obj only!) */
                     61:
                     62: #ifdef _KERNEL
                     63:
                     64: /*
                     65:  * prototypes
                     66:  */
                     67:
                     68: void uao_init(void);
                     69: int uao_set_swslot(struct uvm_object *, int, int);
                     70: void uao_dropswap(struct uvm_object *, int);
                     71: int uao_swap_off(int, int);
                     72:
                     73: /*
                     74:  * globals
                     75:  */
                     76:
                     77: extern struct uvm_pagerops aobj_pager;
                     78:
                     79: #endif /* _KERNEL */
                     80:
                     81: #endif /* _UVM_UVM_AOBJ_H_ */

CVSweb