Esempio n. 1
0
File: einj.py Progetto: xk/bits
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
Esempio n. 2
0
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
Esempio n. 3
0
File: einj.py Progetto: xk/bits
def display_einj():
    with ttypager.page():
        einj = acpi.parse_einj()
        if einj is None:
            raise RuntimeError("No ACPI EINJ table found")
        print(einj)
Esempio n. 4
0
def display_einj():
    with ttypager.page():
        einj = acpi.parse_einj()
        if einj is None:
            raise RuntimeError("No ACPI EINJ table found")
        print(einj)