DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_idata_alloc(D3sdi)


sdi_idata_alloc -- allocate and initialize a idata structure for a controller instance

Synopsis

   #include <sys/sdi.h>
   

HBA_IDATA_STRUCT *sdi_idata_alloc(rm_key_t rm_key, const HBA_IDATA_STRUCT *idata);

Description

sdi_idata_alloc allocates a new hba_idata_v5(D4sdi) structure for a controller instance identified by rm_key.

The information passed in the original idata structure is used in initializing the newly allocated idata structure. The rest of the information is retrieved from the autoconfiguration resource manager database using rm_key.

If the HBA driver has initialized an array of original idata structure members for each controller, it must must pass the correct idata structure member associated with this controller instance.

Arguments


rm_key
Resource manager key for the controller instance.

idata
pointer to original hba_idata_v5(D4sdi) template instance.

Return values

Pointer to a newly allocated idata structure.

Usage

Context and synchronization

Blockable context.

Driver-defined basic locks, read/write locks, and sleep locks cannot be held across calls to this function.

Applicable hardware

All

Version applicability

sdi 4 HBA drivers

References

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