Protocols — SCSI Bus Support
Version 1.10 12/01/02 13-13
Description
The EFI_SCSI_PASS_THRU_PROTOCOL.BuildDevicePath() function allocates and
builds a single device path node for the SCSI device specified by Target and Lun. If the SCSI
device specified by Target and Lun are not present on the SCSI channel, then
EFI_NOT_FOUND is returned. If DevicePath is NULL, then EFI_INVALID_PARAMETER is
returned. If there are not enough resources to allocate the device path node, then
EFI_OUT_OF_RESOURCES is returned. Otherwise, DevicePath is allocated with the boot
service AllocatePool()
, the contents of DevicePath are initialized to describe the SCSI
device specified by Target and Lun, and EFI_SUCCESS is returned.
Status Codes Returned
EFI_SUCCESS The device path node that describes the SCSI device specified by
Target and Lun was allocated and returned in DevicePath.
EFI_NOT_FOUND
The SCSI devices specified by
Target and Lun does not exist
on the SCSI channel.
EFI_INVALID_PARAMETER
DevicePath is NULL.
EFI_OUT_OF_RESOURCES
There are not enough resources to allocate
DevicePath.