FreeBSD/sys/contrib/dev/acpica/common/ahuuids.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiAhMatchUuid
 *
 * PARAMETERS:  Data                - Data buffer containing a UUID
 *
 * RETURN:      ASCII description string for the UUID if it is found.
 *
 * DESCRIPTION: Returns a description string for "known" UUIDs, which are
 *              are UUIDs that are related to ACPI in some way.
 *
 ******************************************************************************/
AcpiAhMatchUuid
PARAMETERS:  Data                - Data buffer containing a UUID

ASCII description string for the UUID if it is found.

Returns a description string for "known" UUIDs, which are
are UUIDs that are related to ACPI in some way.
AcpiAhMatchUuid PARAMETERS : Data - Data buffer containing a UUID ASCII description string for the UUID if it is found . Returns a description string for " known " UUIDs which are are UUIDs that are related to ACPI in some way .
const char *
AcpiAhMatchUuid (
    UINT8                   *Data)
{
    const AH_UUID           *Info;
    UINT8                   UuidBuffer[UUID_BUFFER_LENGTH];
    for (Info = AcpiUuids; Info->Description; Info++)
    {
        if (!Info->String)
        {
            continue;
        }
        AcpiUtConvertStringToUuid (Info->String, UuidBuffer);
        if (!memcmp (Data, UuidBuffer, UUID_BUFFER_LENGTH))
        {
            return (Info->Description);
        }
    }
    return (NULL);
}
const char * AcpiAhMatchUuid ( UINT8 * Data ) { const AH_UUID * Info ; UINT8 UuidBuffer [ UUID_BUFFER_LENGTH ] ; for ( Info = AcpiUuids ; Info -> Description ; Info ++ ) { if ( ! Info -> String ) { continue ; } AcpiUtConvertStringToUuid ( Info -> String , UuidBuffer ) ; if ( ! memcmp ( Data , UuidBuffer , UUID_BUFFER_LENGTH ) ) { return ( Info -> Description ) ; } } return ( NULL ) ; }
FUNCTION:    AcpiAhMatchUuid
 PARAMETERS:  Data                - Data buffer containing a UUID
FUNCTION : AcpiAhMatchUuid PARAMETERS : Data - Data buffer containing a UUID
/* Walk the table of known ACPI-related UUIDs */ /* Null string means desciption is a UUID class */