DEV_match
Application Program Interface
2-69
Important Note:
This API will no longer be supported in the next major
release of DSP/BIOS. We recommend that you use the IOM driver
interface instead. See the
DSP/BIOS Driver Developer’s Guide
(SPRU616). This API is still supported in DSP/BIOS 5.32 and will be
supported in any patch releases or minor enhancements to DSP/BIOS
5.32.
C Interface
Syntax
substr = DEV_match(name, device);
Parameters
String
name;
/* device name */
DEV_Device **device; /* pointer to device table entry */
Return Value
String
substr;
/* remaining characters after match */
Description
DEV_match searches the device table for the first device name that
matches a prefix of name. The output parameter, device, points to the
appropriate entry in the device table if successful and is set to NULL on
error. The DEV_Device structure is defined in dev.h.
The substr return value contains a pointer to the characters remaining
after the match. This string is used by stacking devices to specify the
name(s) of underlying devices (for example, /scale10/sine might match
/scale10, a stacking device, which would, in turn, use /sine to open the
underlying generator device).
See Also
DEV_match
Match a device name with a driver