Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ size(D2) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       size(D2)                                                    size(D2)


       NAME
             size - return size of logical block device

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/param.h>
             #include <sys/ddi.h>
             int prefixsize(dev_t dev);

          Arguments
             dev       The logical device number.

       DESCRIPTION
             The size entry point returns the number of NBPSCTR-byte units
             on a logical block device (partition).  NBPSCTR, defined in
             param.h, is the number of bytes per logical disk sector.

          Return Values
             On success, the size routine should return the number of
             NBPSCTR-byte units on the logical block device specified by
             dev; on failure, size should return -1.

       USAGE
             This entry point is required in all block device drivers.

             size(D2) is called only when the device is open.

          Synchronization Constraints
             The size routine has user context and can sleep.  However, it
             should be careful not to spend much time sleeping, especially
             if the routine is called when the logical device is not open.

       NOTICES
          Portability
             All processors

          Applicability
             ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp










                           Copyright 1994 Novell, Inc.               Page 1








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