Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cm_devconfig_size(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       cm_devconfig_size(D3)                          cm_devconfig_size(D3)


       NAME
             cm_devconfig_size - get the size of device configuration space

       SYNOPSIS
             #include <sys/confmgr.h>
             #include <sys/ddi.h>
             size_t cm_devconfig_size(rm_key_t rm_key);

          Arguments
             rm_key    Resource manager key selecting a particular board
                       instance.

       DESCRIPTION
             cm_devconfig_size returns the size of the device configuration
             space for the given device.

          Return Values
             cm_devconfig_size returns the size in bytes, or 0 on error.

       USAGE
             cm_devconfig_size is used in conjunction with
             cm_read_devconfig(D3) so that the entire device configuration
             space can be read in one piece.  The size of the configuration
             space varies depending on the bus type.  On some buses the
             size can vary with each device.

             Typically, the caller will use the size returned by
             cm_devconfig_size to allocate a block of memory which it then
             passes to cm_read_devconfig(D3).

          Level
             Initialization or Base.

          Synchronization Constraints
             Does not sleep.

             Driver-defined basic locks, read/write locks, and sleep locks
             may be held across calls to this function.

       REFERENCES
             cm_read_devconfig(D3), cm_write_devconfig(D3), cm_args(D4)

       NOTICES
          Portability
             All processors



                           Copyright 1994 Novell, Inc.               Page 1













      cm_devconfig_size(D3)                          cm_devconfig_size(D3)


         Applicability
            ddi: 6, 6mp, 7, 7mp














































                          Copyright 1994 Novell, Inc.               Page 2








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