Content-type: text/html Man page of getminor

getminor

Section: Kernel Functions for Drivers (9F)
Updated: 16 Jan 2006
Index Return to Main Contents
 

NAME

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).  

PARAMETERS

dev Device number.

 

DESCRIPTION

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

RETURN VALUES

The minor number.  

CONTEXT

The getminor() function can be called from user, interrupt, or kernel context.  

EXAMPLES

See the getmajor(9F) manual page for an example of how to use getminor().  

SEE ALSO

getmajor(9F), makedevice(9F)

Writing Device Drivers  

WARNINGS

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


 

Index

NAME
SYNOPSIS
INTERFACE LEVEL
PARAMETERS
DESCRIPTION
RETURN VALUES
CONTEXT
EXAMPLES
SEE ALSO
WARNINGS

This document was created by man2html, using the manual pages.
Time: 02:39:36 GMT, October 02, 2010