DEV_deleteDevice
Application Program Interface
2-67
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
status = DEV_deleteDevice(name);
Parameters
String
name;
/* name of device to be deleted */
Return Value
Int
status;
/* result of operation */
Reentrant
no
Description
DEV_deleteDevice deallocates the specified dynamically-created device
and deletes it from the list of devices in the application.
The name parameter specifies the device to delete. This name must
match a name used with DEV_createDevice.
Before deleting a device, delete any SIO streams that use the device.
SIO_delete cannot be called after the device is deleted.
If the device type is DEV_IOMTYPE, the mdUnBindDev function in the
function table pointed to by the fxns parameter of the device is called as
a result of calling DEV_deleteDevice. This call is made with interrupts
disabled.
DEV_createDevice returns one of the following status values:
DEV_deleteDevice calls SYS_error if mdUnBindDev returns a failure
condition. The device is deleted even if mdUnBindDev fails, but
DEV_deleteDevice returns the IOM error returned by mdUnBindDev.
Constraints and
Calling Context
❏
This function cannot be called from a SWI or HWI.
DEV_deleteDevice
Delete a dynamically-created device
Constant
Description
SYS_OK
Success.
SYS_ENODEV
No device with the specified name exists.