Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getminor(D3DK)  —  

.IX \f4getminor\fP(D3DK)
.IX minor device number, internal

NAME

getminor − get internal minor device number

SYNOPSIS

#include <sys/types.h>
#include <sys/ddi.h>
minor_t getminor(dev_t dev);

ARGUMENTS

devDevice number. 

DESCRIPTION

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

RETURN VALUE

The internal minor 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), getmajor(D3DK), makedevice(D3DK)

DDI/DKI

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