aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hwinfo.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hwinfo.zig b/src/hwinfo.zig
index 62eacf2..b688c9b 100644
--- a/src/hwinfo.zig
+++ b/src/hwinfo.zig
@@ -35,6 +35,13 @@ pub const DevKind = enum(u32) {
return ParseError.UnknownDevKind;
}
+
+ pub fn isUserManagable(self: DevKind) bool {
+ return switch (self) {
+ .cpus, .plic => false,
+ else => true,
+ };
+ }
};
pub const Dev = extern struct {