(SVR5)
devinfo(D2mdi)
devinfo --
obtain information about the MDI device controlled by the driver
Syntax
See the
devinfo(D2)
manual page
for syntax,
context,
and general usage information
about this entry point routine.
Usage
Examples
int
e3Ddevinfo(void *idata, channel_t channel, di_parm_t parm, void *valp)
{
switch(parm) {
case DI_MEDIA:
*(char **)valp = "NIC"; /* short names here */
return(0);
case DI_SIZE:
case DI_RBCBP:
case DI_WBCBP:
case DI_PHYS_HINT:
return(EOPNOTSUPP);
default:
return(ENOSYS);
}
/* NOTREACHED */
}
Version applicability
mdi:
2, 2.1 running with ddi: 8, 8mp.
References
devinfo(D2)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005