DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

cm_getbrdkey(D3)


cm_getbrdkey -- retrieve the resource manager key for a particular driver/board

Synopsis (Not in current DDI version)

   #include <sys/confmgr.h>
   #include <sys/ddi.h>
   

rm_key_t cm_getbrdkey(char *drvname, int relbrd);

Description

cm_getbrdkey is used to retrieve a key corresponding to one of the boards a driver supports. The key is used by the driver to access parameters associated with the specified board.

relbrd must be within the range 0 to cm_getnbrd(D3) - 1.

Arguments


drvname
The module name for the driver.

relbrd
The relative board number.

Return values

cm_getbrdkey returns a key for accessing the specified board. It returns RM_NULL_KEY if relbrd is out of range, drvname is NULL, or there are no keys with a matching drvname.

Usage

Context and synchronization

User or blockable context.

Hardware applicability

All

Version applicability

ddi: 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp

Differences between versions

In DDI 8 drivers, this functionality is replaced by the config(D2) entry point routine.

References

cm_getnbrd(D3), cm_getval(D3), cm_params(D5)

``Autoconfiguration'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005