IMA_PhbaDownload - Downloads the image in a specified file to a specified PHBA
cc [ flag... ] file... -lima [ library... ] #include <ima.h> IMA_STATUS IMA_PhbaDownload( /* in */ IMA_OID phbaOid, /* in */ IMA_PHBA_DOWNLOAD_IMAGE_TYPE imageType, /* in */ const IMA_WCHAR *pFileName );
The object ID of the PHBA (physical host bus adapter) to which the image file is downloaded
The type of image downloaded
A pointer to the name, and if necessary the path, of a file that contains the image to download to the PHBA
The IMA_PhbaDownload() API downloads the image in a specified file to a specified PHBA.
Returned if this API is not supported by the specified PHBA
Returned if the imageType argument does not specify a valid IMA_PHBA_DOWNLOAD_IMAGE_TYPE value
Returned if the pFileName argument is NULL, or specifies a memory area from which data cannot be read
Returned if the pFileName argument specifies a file that cannot be opened for reading or that does not contain a download image of the specified image type
Returned if the phbaOid argument does not specify a valid object type
Returned if the phbaOid argument does not specify a PHBA object
Returned if the phbaOid argument does not specify a PHBA known to the system
See attributes(7) for descriptions of the following attributes:
|
libima(3LIB), attributes(7), IMA_GetPhbaDownloadProperties(3IMA), IMA_IsPhbaDownloadFile(3IMA)