Marvin, I think you are right about the statement of decorator 'OPTIONAL', you can submit PI ECR, then it can be aligned with UEFI EFI_GET_VARIABLE. typedef EFI_STATUS (EFIAPI *EFI_GET_VARIABLE)( IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes, OPTIONAL IN OUT UINTN *DataSize, OUT VOID *Data OPTIONAL );
And since the passed-in state of the referenced data is not used by the routine, I don't think decorator 'IN' should be added. Thanks, Star -----Original Message----- From: edk2-devel [mailto:[email protected]] On Behalf Of Marvin H?user Sent: Tuesday, July 25, 2017 12:42 AM To: [email protected] Subject: [edk2] [UEFI PI 1.6/EDK2] Missing decorators for EFI_PEI_GET_VARIABLE2. Dear developers, I noticed that EFI_PEI_GET_VARIABLE2 is lacking decorators in both the UEFI PI 1.6 specification and the EDK2 codebase. The parameter description for 'Attributes' starts with 'If non-NULL', hence it may be NULL, which is not reflected in the function prototype with the decorator 'OPTIONAL'. Furthermore, as the possibility of it being NULL is not coupled to the values of the other parameters, 'IN' should be added as well. Can someone please forward this to the right working group? Thanks and best regards, Marvin. _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

