Exemplo n.º 1
0
Arquivo: einj.py Projeto: 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
Exemplo 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
Exemplo n.º 3
0
Arquivo: einj.py Projeto: 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)
Exemplo 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)