gitee.com/mirrors_u-root/u-root@v7.0.0+incompatible/pkg/acpi/tables.go (about) 1 // Copyright 2019 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build linux 6 7 package acpi 8 9 import "fmt" 10 11 // GetTable uses all the Methods until one works. 12 func GetTable() (string, []Table, error) { 13 for m, f := range Methods { 14 t, err := f() 15 if err == nil { 16 return m, t, nil 17 } 18 } 19 return "", nil, fmt.Errorf("Could not get ACPI tables") 20 }