diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-10 12:14:36 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-10 14:34:44 +0100 |
| commit | 95871dcc45f6531b4c692ff892aad56bdd95e16f (patch) | |
| tree | 95c8ffe8b8a36b1dc9473cc3a07e7286595e0b2f /pkg/subsystem/list.go | |
| parent | 0ee9f5fa4e372b5a2da4ac27418e6c5bccbcaf7a (diff) | |
pkg/subsystem: restructure the package
Remove the entity and match subpackages.
Regenerate the linux.go file.
Diffstat (limited to 'pkg/subsystem/list.go')
| -rw-r--r-- | pkg/subsystem/list.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pkg/subsystem/list.go b/pkg/subsystem/list.go index 737ab859e..7842f8620 100644 --- a/pkg/subsystem/list.go +++ b/pkg/subsystem/list.go @@ -3,10 +3,6 @@ package subsystem -import ( - "github.com/google/syzkaller/pkg/subsystem/entity" -) - // In general, it's not correct to assume that subsystems are only determined by target.OS, // because subsystems are related not to the user interface of the OS kernel, but rather to // the OS kernel implementation. @@ -17,16 +13,16 @@ import ( // Therefore, subsystem lists have to be a completely different entity. var ( - lists = make(map[string][]*entity.Subsystem) + lists = make(map[string][]*Subsystem) ) -func RegisterList(name string, list []*entity.Subsystem) { +func RegisterList(name string, list []*Subsystem) { if _, ok := lists[name]; ok { panic(name + " subsystem list already exists!") } lists[name] = list } -func GetList(name string) []*entity.Subsystem { +func GetList(name string) []*Subsystem { return lists[name] } |
