Skip to content
/ lai-rs Public

Rusty and safe bindings for the Lightweight AML Interpreter (LAI).

License

Notifications You must be signed in to change notification settings

aero-os/lai-rs

Repository files navigation

lai-rs

Rusty and safe bindings for the Lightweight AML Interpreter (LAI). As an AML interpreter, LAI is used by OS kernels to implement support for ACPI.

Porting

LAI has a few standardized host functions that the kernel needs to implement; most of them are optional and the crate provides default implementations for them. The host functions are a part of the Host trait which the kernel is required to implement.

Initializing Host

struct LaiHost;

impl lai::Host for LaiHost {
    // host functions...
}

let lai_host = Arc::new(LaiHost);
lai::init(lai_host);

// After this point, the host has been successfully initialized and
// can do whatever it wants to do with LAI!

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Rusty and safe bindings for the Lightweight AML Interpreter (LAI).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages