FreeBSD/sys/contrib/dev/acpica/compiler/aslmaputils.c
/*******************************************************************************
 *
 * FUNCTION:    MpGetHidViaNamestring
 *
 * PARAMETERS:  DeviceName          - Namepath for parent device
 *
 * RETURN:      _HID string. Never NULL.
 *
 * DESCRIPTION: Get a _HID value via a device pathname (instead of just simply
 *              a device node.)
 *
 ******************************************************************************/
MpGetHidViaNamestring
PARAMETERS:  DeviceName          - Namepath for parent device

_HID string. Never NULL.

Get a _HID value via a device pathname (instead of just simply
a device node.)
MpGetHidViaNamestring PARAMETERS : DeviceName - Namepath for parent device _HID string . Never NULL . Get a _HID value via a device pathname ( instead of just simply a device node . )
char *
MpGetHidViaNamestring (
    char                    *DeviceName)
{
    ACPI_NAMESPACE_NODE     *DeviceNode;
    ACPI_STATUS             Status;
    Status = AcpiNsGetNode (NULL, DeviceName, ACPI_NS_NO_UPSEARCH,
        &DeviceNode);
    if (ACPI_FAILURE (Status))
    {
        goto ErrorExit;
    }
    return (MpGetHidValue (DeviceNode));
ErrorExit:
    return ("-No HID-");
}
char * MpGetHidViaNamestring ( char * DeviceName ) { ACPI_NAMESPACE_NODE * DeviceNode ; ACPI_STATUS Status ; Status = AcpiNsGetNode ( NULL , DeviceName , ACPI_NS_NO_UPSEARCH , & DeviceNode ) ; if ( ACPI_FAILURE ( Status ) ) { goto ErrorExit ; } return ( MpGetHidValue ( DeviceNode ) ) ; ErrorExit : return ( " " ) ; }
FUNCTION:    MpGetHidViaNamestring
 PARAMETERS:  DeviceName          - Namepath for parent device
FUNCTION : MpGetHidViaNamestring PARAMETERS : DeviceName - Namepath for parent device