Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rminit(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       rminit(D3)                                                rminit(D3)


       NAME
             rminit - initialize a private space management map

       SYNOPSIS
             #include <sys/map.h>
             #include <sys/ddi.h>
             void rminit(struct map *mp, ulong_t mapsize);

          Arguments
             mp        Pointer to the map describing the private space.

             mapsize   Number of entries in the map table.

       DESCRIPTION
             The rminit function initializes a private space management map
             structure that can be used for the allocation of space.

          Return Values
             None

       USAGE
             Although rminit initializes the map structure itself, it does
             not allocate the space that the map will manage.  This space
             must be allocated separately and must be added to the map
             using rmfree(D3) prior to attempting to allocate space from
             the map using rmalloc(D3).

             The system maintains the map list structure by size and index.
             The caller places whatever semantics on the units of size are
             appropriate for the type of space being managed.  For example,
             units may be byte addresses, pages of memory, or blocks.  The
             elements of the map are sorted by index.

             The map array must be initialized to zero before calling
             rminit.

             Three map entries are reserved for use by the system and are
             not available for general map use.  Therefore, mapsize must be
             greater than three.

          Level
             Initialization, Base or Interrupt.

          Synchronization Constraints
             Does not sleep.



                           Copyright 1994 Novell, Inc.               Page 1













      rminit(D3)                                                rminit(D3)


         Examples
            See rmalloc(D3) for an example of rminit.

      REFERENCES
            rmalloc(D3), rmfree(D3), rmsetwant(D3)

      NOTICES
         Portability
            All processors

         Applicability
            ddi: 1, 2, 4

            rmallocmap(D3) replaces rminit.


































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026