Re: [RFC PATCH 1/3] rust: implement wrapper for acpi_object

From: Gladyshev Ilya

Date: Tue Dec 23 2025 - 11:46:55 EST


On 12/22/25 22:32, Rafael J. Wysocki wrote:
On Sun, Dec 21, 2025 at 7:24 PM Gladyshev Ilya <foxido@xxxxxxxxxx> wrote:

ACPI Object is represented via union on C-side. On Rust side, it's
zero-cost type wrapper for each ACPI Type, with individual methods for
getters and other interactions.

This is ACPICA stuff though and switching over ACPICA to Rust any time
soon is rather unlikely.

Is this really needed on the Rust side?

At least acpi_buffer is needed, and for now, only that will be wrapped (I will remove other types).

Note that there are no actual types on the Rust side, only transparent wrappers around C acpi structs (for type safety).