def get_action(action): einj = acpi.parse_einj() if einj is None: raise RuntimeError("No ACPI EINJ table found") for entry in einj.entries: if entry.injection_action == action: return entry
def display_einj(): with ttypager.page(): einj = acpi.parse_einj() if einj is None: raise RuntimeError("No ACPI EINJ table found") print(einj)