MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Data Structures for Drivers                       moduleinfo(9S)



NAME
     moduleinfo - STREAMS driver identification and limit  value
     structure

SYNOPSIS
     #include 


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

DESCRIPTION
     When a module or driver is declared, several  identification
     and  limit values can be set. These values are stored in the
     moduleinfo structure.


     The moduleinfo structure is intended to be read-only.  How-
     ever,  the  flow  control limits (mihiwat and milowat) and
     the packet size limits (miminpsz and mimaxpsz) are  copied
     to the QUEUE structure, where they can be modified.


     For a driver, miidname must match the name  of  the  driver
     binary  file.  For  a module, miidname must match the fname
     field of the fmodsw structure. See fmodsw(9S) for details.

STRUCTURE MEMBERS
       ushortt      miidnum;      /* module ID number */
       char          *miidname;    /* module name */
       ssizet       miminpsz;     /* minimum packet size */
       ssizet       mimaxpsz;     /* maximum packet size */
       sizet        mihiwat;      /* high water mark */
       sizet        milowat;      /* low water mark */



     The constant FMNAMESZ, limiting the  length  of  a  module's
     name, is set to eight in this release.

SEE ALSO
     fmodsw(9S), queue(9S)


     STREAMS Programming Guide










SunOS 5.11          Last change: 26 Nov 2002                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™