Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getmajor(D3DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getmajor(D3DK)  —  

.IX \f4getmajor\fP(D3DK)

NAME

getmajor − get internal major device number

SYNOPSIS

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

ARGUMENTS

devDevice number. 

DESCRIPTION

The getmajor function extracts the internal major number from a device number.  See getemajor(D3DK) for an explanation of external and internal major numbers.  .IX major device number, internal

RETURN VALUE

The internal major number. 

LEVEL

Base or Interrupt. 

NOTES

No validity checking is performed.  If dev is invalid, an invalid number is returned.  Does not sleep.

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

SEE ALSO

etoimajor(D3DK), getemajor(D3DK), geteminor(D3DK), getminor(D3DK), makedevice(D3DK)

DDI/DKI

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