ddi_getiminor man page on OpenIndiana

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

ddi_getiminor(9F)	 Kernel Functions for Drivers	     ddi_getiminor(9F)

NAME
       ddi_getiminor - get kernel internal minor number from an external dev_t

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

       minor_t ddi_getiminor(dev_t dev);

INTERFACE LEVEL
       This interface is obsolete. getminor(9F) should be used instead.

PARAMETERS
       The following parameters are supported:

       dev    Device number.

DESCRIPTION
       ddi_getiminor()	extracts  the  minor number from a device number. This
       call should be used only for device numbers that have  been  passed  to
       the  kernel  from  the user space through opaque interfaces such as the
       contents of ioctl(9E) and putmsg(2). The device numbers passed in using
       standard	 device entry points must continue to be interpreted using the
       getminor(9F) interface. This new interface is used to translate between
       user  visible device numbers and in kernel device numbers. The two num‐
       bers may differ in a clustered system.

       For certain bus types, you can call this DDI  function  from  a	 high-
       interrupt  context.   These types include ISA and SBus buses.  See sys‐
       bus(4), isa(4), and sbus(4) for details.

CONTEXT
       ddi_getiminor() can be called from user context only.

RETURN VALUES
       The minor number or EMINOR_UNKNOWN if the minor number of the device is
       invalid.

ATTRIBUTES
       See attributes(5) for a description of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Stability Level		     │Obsolete			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       attributes(5), getmajor(9F), getminor(9F), makedevice(9F)

       Writing Device Drivers

WARNINGS
       Drivers	are  required  to  replace  calls to ddi_getminor.9f by getmi‐
       nor(9F)) in order to compile under Solaris 10 and later versions.

SunOS 5.11			  18 Nov 2004		     ddi_getiminor(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