# 2.11BSD#431 - /usr/src/sys/h/map.h

##### struct's

    map               X
    mapent            X

       1: /*
       2:  * Copyright (c) 1986 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)map.h	1.1 (2.10BSD Berkeley) 12/1/86
       7:  */
       8:
       9: /*
      10:  * Resource Allocation Maps.
      11:  *
      12:  * Associated routines manage allocation of an address space using
      13:  * an array of segment descriptors.
      14:  *
      15:  * Malloc and mfree allocate and free the resource described
      16:  * by the resource map.  If the resource map becomes too fragmented
      17:  * to be described in the available space, then some of the resource
      18:  * is discarded.  This may lead to critical shortages,
      19:  * but is better than not checking (as the previous versions of
      20:  * these routines did) or giving up and calling panic().
      21:  *
      22:  * N.B.: The address 0 in the resource address space is not available
      23:  * as it is used internally by the resource map routines.
      24:  */
      25:
      26: struct map {
      27:     struct mapent   *m_map;     /* start of the map */
      28:     struct mapent   *m_limit;   /* address of last slot in map */
      29:     char    *m_name;        /* name of resource */
      30: /* we use m_name when the map overflows, in warning messages */
      31: };
      32:
      33: struct mapent {
      34:     size_t  m_size;     /* size of this segment of the map */
      35:     memaddr m_addr;     /* resource-space addr of start of segment */
      36: };
      37:
      38: #ifdef KERNEL
      39: extern struct   map coremap[1]; /* space for core allocation */
      40: extern struct   map swapmap[1]; /* space for swap allocation */
      41: extern struct   map ub_map[1];  /* space for UNIBUS allocation */
      42: #endif

#### Defined struct's

map defined in line 26; used 32 times

- in line 39-41(6)
- in /usr/src/sys/CURLY/param.c line 97(2), 104(2)
- in /usr/src/sys/GENERIC/param.c line 97(2), 104(2)
- in /usr/src/sys/QT/param.c line 97(2), 104(2)
- in /usr/src/sys/conf/param.c line 97(2), 104(2)
- in /usr/src/sys/pdp/machdep.c line 162(2)
- in /usr/src/sys/sys/subr_rmap.c line 49(2), 105(2), 201(2)
- in /usr/src/usr.sbin/pstat/pstat.c line 759(2)

mapent defined in line 33; used 36 times

- in line 27-28(2)
- in /usr/src/sys/CURLY/param.c line 96(2), 103(2)
- in /usr/src/sys/GENERIC/param.c line 96(2), 103(2)
- in /usr/src/sys/QT/param.c line 96(2), 103(2)
- in /usr/src/sys/conf/param.c line 96(2), 103(2)
- in /usr/src/sys/pdp/machdep.c line 161(2)
- in /usr/src/sys/sys/init_main.c line 40(2)
- in /usr/src/sys/sys/subr_rmap.c line 52(2), 109-110(4), 205-207(4)
- in /usr/src/usr.sbin/pstat/pstat.c line 760(2), 766(2)

#### Usage of this include

map.h used 42 times

- in /usr/src/new/crash/crash.c line 100
- in /usr/src/sys/CURLY/param.c line 22
- in /usr/src/sys/GENERIC/param.c line 22
- in /usr/src/sys/QT/param.c line 22
- in /usr/src/sys/conf/param.c line 22
- in /usr/src/sys/h/sysctl.h line 53
- in /usr/src/sys/pdp/machdep.c line 17
- in /usr/src/sys/pdp/machdep2.c line 18
- in /usr/src/sys/pdp/ram.c line 24
- in /usr/src/sys/pdpif/if_il.c line 44
- in /usr/src/sys/pdpif/if_qe.c line 112
- in /usr/src/sys/pdpif/if_qt.c line 59
- in /usr/src/sys/pdpif/if_uba.c line 23
- in /usr/src/sys/pdpuba/br.c line 51
- in /usr/src/sys/pdpuba/dh.c line 26
- in /usr/src/sys/pdpuba/dhu.c line 32
- in /usr/src/sys/pdpuba/dhv.c line 40
- in /usr/src/sys/pdpuba/hk.c line 41
- in /usr/src/sys/pdpuba/ra.c line 138
- in /usr/src/sys/pdpuba/rk.c line 24
- in /usr/src/sys/pdpuba/rl.c line 54
- in /usr/src/sys/pdpuba/rx.c line 52
- in /usr/src/sys/pdpuba/si.c line 22
- in /usr/src/sys/pdpuba/tm.c line 27
- in /usr/src/sys/pdpuba/tmscp.c line 256
- in /usr/src/sys/pdpuba/tmscpdump.c line 23
- in /usr/src/sys/pdpuba/ts.c line 24
- in /usr/src/sys/pdpuba/xp.c line 30
- in /usr/src/sys/sys/init_main.c line 15
- in /usr/src/sys/sys/kern_exec.c line 14
- in /usr/src/sys/sys/kern_exit.c line 14
- in /usr/src/sys/sys/kern_fork.c line 14
- in /usr/src/sys/sys/kern_sysctl.c line 55
- in /usr/src/sys/sys/subr_log.c line 37
- in /usr/src/sys/sys/subr_rmap.c line 11
- in /usr/src/sys/sys/sys_kern.c line 19
- in /usr/src/sys/sys/sys_net.c line 27
- in /usr/src/sys/sys/ufs_bio.c line 16
- in /usr/src/sys/sys/vm_proc.c line 13
- in /usr/src/sys/sys/vm_swap.c line 15
- in /usr/src/sys/sys/vm_text.c line 12
- in /usr/src/usr.sbin/pstat/pstat.c line 28

Last modified: 1993-01-03 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 720 |