home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / dmap < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.5 KB  |  58 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/dmap.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/dmap.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    dmap.h,v $
  8.  * Revision 1.1  95/01/11  10:19:07  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.4  88/11/25  11:43:13  brian
  12.  * NDMAP increased to 128 (from 38), allowing swap space to be allocated
  13.  * a page at a time with a max segment size of 4Mb.
  14.  * 
  15.  * Revision 1.3  88/06/17  20:18:50  beta
  16.  * Acorn Unix initial beta version
  17.  * 
  18.  */
  19. /* @(#)dmap.h    1.2 87/05/15 3.2/4.3NFSSRC */
  20. /*
  21.  * Copyright (c) 1982, 1986 Regents of the University of California.
  22.  * All rights reserved.  The Berkeley software License Agreement
  23.  * specifies the terms and conditions for redistribution.
  24.  *
  25.  *    @(#)dmap.h    7.1 (Berkeley) 6/4/86
  26.  */
  27.  
  28. /*
  29.  * Definitions for the mapping of virtual swap
  30.  * space to the physical swap area - the disk map.
  31.  */
  32.  
  33. #define    NDMAP         128    /* size of the swap area map.      */
  34.                 /* allows 4Mb if DMMAX is one page */
  35.  
  36. struct    dmap
  37. {
  38.     swblk_t    dm_size;    /* current size used by process */
  39.     swblk_t    dm_alloc;    /* amount of physical swap space allocated */
  40.     swblk_t    dm_map[NDMAP];    /* first disk block number in each chunk */
  41. };
  42. #ifdef KERNEL
  43. struct    dmap zdmap;
  44. int    dmmin, dmmax, dmtext;
  45. #endif
  46.  
  47. /*
  48.  * The following structure is that ``returned''
  49.  * from a call to vstodb().
  50.  */
  51. struct    dblock
  52. {
  53.     swblk_t    db_base;    /* base of physical contig drum block */
  54.     swblk_t    db_size;    /* size of block */
  55. };
  56.  
  57. /* EOF dmap.h */
  58.