DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_wedt(D3sdi)


sdi_wedt -- modify an existing Equipped Device Table (EDT) entry

Synopsis

   #include <sys/sdi.h>

int sdi_wedt(struct sdi_edt *edtp, int devtype, char *inq);

Description

sdi_wedt modifies the device type and inquiry string of an existing EDT entry pointed to by edtp.

Arguments


edtp
pointer to an EDT entry to modify

devtype
new device type value to set for this EDT entry

inq
pointer to the new inquiry string to set for this EDT entry

Return values

On success, sdi_wedt returns SDI_RET_OK. On failure, it returns SDI_RET_ERR.

Usage

If the EDT is empty or no matching entry exists, SDI_RET_ERR is returned. The value for edtp used must be the same as the value returned by sdi_redt for a given SDI device.

No validity checking is performed on the value specified for devtype. inq must be a valid pointer to a null-terminated string.

sdi_wedt is not regularly used, but allows modification of the inquiry string and device type for an existing EDT entry.

Context and synchronization

Blockable context.

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 1, 2, 3, 4 HBA and target drivers.

References

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