home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / vm / rm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.9 KB  |  75 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. /*
  11.  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12.  *         PROPRIETARY NOTICE (Combined)
  13.  * 
  14.  * This source code is unpublished proprietary information
  15.  * constituting, or derived under license from AT&T's UNIX(r) System V.
  16.  * In addition, portions of such source code were derived from Berkeley
  17.  * 4.3 BSD under license from the Regents of the University of
  18.  * California.
  19.  * 
  20.  * 
  21.  * 
  22.  *         Copyright Notice 
  23.  * 
  24.  * Notice of copyright on this source code product does not indicate 
  25.  * publication.
  26.  * 
  27.  *     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  28.  *     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  29.  *               All rights reserved.
  30.  *  
  31.  */
  32.  
  33. #ifndef _VM_RM_H
  34. #define _VM_RM_H
  35.  
  36. #ident    "@(#)/usr/include/vm/rm.h.sl 1.1 4.0 12/08/90 17166 AT&T-USL"
  37.  
  38. /*
  39.  * VM - Resource Management.
  40.  */
  41.  
  42. #ifdef DEBUG
  43.  
  44. struct    page *rm_allocpage(/* seg, addr, len, flags */);
  45. struct    page *rm_allocpage_aligned(/* seg, addr, len, align_mask, align_val, flags */);
  46.  
  47. #else
  48.  
  49. #define rm_allocpage(seg, addr, len, flags) \
  50.     (struct page *) (page_get((u_int) (len), (u_int) (flags)))
  51.  
  52. #define rm_allocpage_aligned(seg, addr, len, mask, val, flags) \
  53.     (struct page *) (page_get_aligned(len, (u_int) (mask), (u_int) (val), \
  54.                       (u_int) (flags)))
  55.  
  56. #endif
  57.  
  58. void    rm_outofanon();
  59. void    rm_outofhat();
  60. size_t    rm_asrss(/* as */);
  61. size_t    rm_assize(/* as */);
  62.  
  63. /*
  64.  * rm_allocpage() request flags.
  65.  */
  66. #ifndef P_NOSLEEP
  67. #define    P_NOSLEEP    0x0000
  68. #define    P_CANWAIT    0x0001
  69. #define    P_PHYSCONTIG    0x0002
  70. #define    P_DMA        0x0004
  71. #define P_NORESOURCELIM    0x0008
  72. #endif
  73.  
  74. #endif    /* _VM_RM_H */
  75.