ACPI_ENUM_CHILD_LENGTH_FROM_CHILD macro

The ACPI_ENUM_CHILD_LENGTH_FROM_CHILD macro calculates the size, in bytes, of a variable-length ACPI_ENUM_CHILD structure.

Syntax

void ACPI_ENUM_CHILD_LENGTH_FROM_CHILD(
    Child
);

Parameters

Child A pointer to a structure of type ACPI_ENUM_CHILD for which to calculate the size, in bytes, of the structure.

Return value

The size, in bytes, of the ACPI_ENUM_CHILD structure that Child points to.

Remarks

A driver can use this macro to calculate the size, in bytes, of the ACPI_ENUM_CHILD structures in an ACPI_ENUM_CHILDREN_OUTPUT_BUFFER structure.

Requirements

Target platform: Desktop

Header: acpiioct.h (include Acpiioct.h)

See also

ACPI_ENUM_CHILD

ACPI_ENUM_CHILDREN_OUTPUT_BUFFER