makedevice man page on OpenIndiana

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

makedevice(9F)		 Kernel Functions for Drivers		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)

SunOS 5.11			  16 Jan 2006			makedevice(9F)
[top]

List of man pages available for OpenIndiana

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