Function uacpi_get_device_resources

uacpi_status uacpi_get_device_resources(uacpi_namespace_node* device, const uacpi_char * method, uacpi_resources** out_resources)

Description

Evaluate an arbitrary method that is expected to return an AML resource

buffer for a 'device' and get the returned resource list via 'out_resources'. NOTE: the returned buffer must be released via uacpi_free_resources() If you don't need to keep the resource array for later use you can uacpi_for_each_device_resource(device, method, ...) instead, which takes care of iteration & memory management on its own.