MAKEDEVICE man page on SmartOS

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

MAKEDEVICE(9F)							MAKEDEVICE(9F)

NAME
       makedevice - make device number from major and minor numbers

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

       dev_t makedevice(major_t majnum, minor_t minnum);

INTERFACE LEVEL
       Architecture independent level 1 (DDI/DKI).

PARAMETERS
       majnum
		 Major device number.

       minnum
		 Minor device number.

DESCRIPTION
       The  makedevice()  function  creates  a	device number from a major and
       minor device number. makedevice() should be used to create device  num‐
       bers  so the driver will port easily to releases that treat device num‐
       bers differently.

RETURN VALUES
       The device number, containing both the major number and the minor  num‐
       ber,  is	 returned. No validation of the major or minor numbers is per‐
       formed.

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

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

				 Jan 16, 2006			MAKEDEVICE(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