51 if ((BufferSize ==
NULL) || (Buffer ==
NULL)) {
52 return EFI_INVALID_PARAMETER;
55 Status =
gRT->GetVariable (
56 ISCSI_INITIATOR_NAME_VAR_NAME,
57 &gEfiIScsiInitiatorNameProtocolGuid,
103 if ((BufferSize ==
NULL) || (Buffer ==
NULL)) {
104 return EFI_INVALID_PARAMETER;
107 if (*BufferSize > ISCSI_NAME_MAX_SIZE) {
108 *BufferSize = ISCSI_NAME_MAX_SIZE;
109 return EFI_INVALID_PARAMETER;
116 if (EFI_ERROR (Status)) {
120 Status =
gRT->SetVariable (
121 ISCSI_INITIATOR_NAME_VAR_NAME,
122 &gEfiIScsiInitiatorNameProtocolGuid,
EFI_STATUS EFIAPI IScsiSetInitiatorName(IN EFI_ISCSI_INITIATOR_NAME_PROTOCOL *This, IN OUT UINTN *BufferSize, IN VOID *Buffer)
EFI_STATUS EFIAPI IScsiGetInitiatorName(IN EFI_ISCSI_INITIATOR_NAME_PROTOCOL *This, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
EFI_STATUS IScsiNormalizeName(IN OUT CHAR8 *Name, IN UINTN Len)
EFI_RUNTIME_SERVICES * gRT
#define EFI_VARIABLE_NON_VOLATILE