Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getmajor(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       getmajor(D3)                                            getmajor(D3)


       NAME
             getmajor - get internal major device number

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/ddi.h>
             major_t getmajor(dev_t dev);

          Arguments
             dev       Internal device number.

       DESCRIPTION
             The getmajor function extracts the internal major number from
             a device number.

          Return Values
             The internal major number.

       USAGE
             No validity checking is performed.  If dev is invalid, an
             invalid number is returned.

             See getemajor(D3) for an explanation of external and internal
             major numbers.

          Level
             Initialization, Base or Interrupt.

          Synchronization Constraints
             Does not sleep.

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

       REFERENCES
             etoimajor(D3), getemajor(D3), geteminor(D3), getminor(D3),
             makedevice(D3)

       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