up | Inhaltsverzeichniss | Kommentar

Manual page for getminor(9F)

getminor - get minor device number

SYNOPSIS

#include <sys/types.h>
#include <sys/mkdev.h>
#include <sys/ddi.h>

minor_t getminor(dev_t dev);

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI).

ARGUMENTS

dev
Device number.

DESCRIPTION

getminor() extracts the minor number from a device number.

RETURN VALUES

The minor number.

CONTEXT

getminor() can be called from user or interrupt context.

EXAMPLE

See the getmajor.9f manual page for an example of how to use getminor.

SEE ALSO

getmajor.9f makedevice.9f

WARNINGS

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


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 07/October/97