[PATCH 08/33] ACPI: Define acpi_put_table cleanup handler and acpi_get_table_ret() helper
Gavin Shan
gshan at redhat.com
Sun Nov 9 17:03:51 PST 2025
On 11/7/25 10:34 PM, Ben Horgan wrote:
> Define a cleanup helper for use with __free to release the acpi table when
> the pointer goes out of scope. Also, introduce the helper
> acpi_get_table_ret() to simplify a commonly used pattern involving
> acpi_get_table().
>
> These are first used in a subsequent commit.
>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
> ---
> include/linux/acpi.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list