getminor man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

GETMINOR(9F)							  GETMINOR(9F)

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	getmiā€
       nor().

SEE ALSO
       getmajor(9F), makedevice(9F)

       Writing Device Drivers

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

				 Jan 16, 2006			  GETMINOR(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net