FreeBSD/sys/contrib/dev/acpica/components/utilities/utresrc.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiUtGetResourceEndTag
 *
 * PARAMETERS:  ObjDesc         - The resource template buffer object
 *              EndTag          - Where the pointer to the EndTag is returned
 *
 * RETURN:      Status, pointer to the end tag
 *
 * DESCRIPTION: Find the EndTag resource descriptor in an AML resource template
 *              Note: allows a buffer length of zero.
 *
 ******************************************************************************/
AcpiUtGetResourceEndTag
PARAMETERS:  ObjDesc         - The resource template buffer object
EndTag          - Where the pointer to the EndTag is returned

Status, pointer to the end tag

Find the EndTag resource descriptor in an AML resource template
Note: allows a buffer length of zero.
AcpiUtGetResourceEndTag PARAMETERS : ObjDesc - The resource template buffer object EndTag - Where the pointer to the EndTag is returned Status pointer to the end tag Find the EndTag resource descriptor in an AML resource template Note : allows a buffer length of zero .
ACPI_STATUS
AcpiUtGetResourceEndTag (
    ACPI_OPERAND_OBJECT     *ObjDesc,
    UINT8                   **EndTag)
{
    ACPI_STATUS             Status;
    ACPI_FUNCTION_TRACE (UtGetResourceEndTag);
    if (!ObjDesc->Buffer.Length)
    {
        *EndTag = ObjDesc->Buffer.Pointer;
        return_ACPI_STATUS (AE_OK);
    }
    Status = AcpiUtWalkAmlResources (NULL, ObjDesc->Buffer.Pointer,
        ObjDesc->Buffer.Length, NULL, (void **) EndTag);
    return_ACPI_STATUS (Status);
}
ACPI_STATUS AcpiUtGetResourceEndTag ( ACPI_OPERAND_OBJECT * ObjDesc , UINT8 * * EndTag ) { ACPI_STATUS Status ; ACPI_FUNCTION_TRACE ( UtGetResourceEndTag ) ; if ( ! ObjDesc -> Buffer . Length ) { * EndTag = ObjDesc -> Buffer . Pointer ; return_ACPI_STATUS ( AE_OK ) ; } Status = AcpiUtWalkAmlResources ( NULL , ObjDesc -> Buffer . Pointer , ObjDesc -> Buffer . Length , NULL , ( void * * ) EndTag ) ; return_ACPI_STATUS ( Status ) ; }
FUNCTION:    AcpiUtGetResourceEndTag
 PARAMETERS:  ObjDesc         - The resource template buffer object
              EndTag          - Where the pointer to the EndTag is returned
FUNCTION : AcpiUtGetResourceEndTag PARAMETERS : ObjDesc - The resource template buffer object EndTag - Where the pointer to the EndTag is returned
/* Allow a buffer length of zero */ /* Validate the template and get a pointer to the EndTag */