diff options
author | Himbeer <himbeer@disroot.org> | 2024-08-02 18:08:40 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-08-02 18:17:09 +0200 |
commit | da7dc5fef2ebc9d5019659918c91343fbe3ad9b5 (patch) | |
tree | 79156693b6cda3eb4da30501ff51266b865b05a9 | |
parent | 6cef76913e0c3e1db80d754665590495b093aeb8 (diff) |
Fix 'Managable' typo
-rw-r--r-- | src/hwinfo.zig | 4 | ||||
-rw-r--r-- | src/syscall.zig | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/hwinfo.zig b/src/hwinfo.zig index 98e767a..8e937c2 100644 --- a/src/hwinfo.zig +++ b/src/hwinfo.zig @@ -36,7 +36,7 @@ pub const DevKind = enum(u32) { return ParseError.UnknownDevKind; } - pub fn isUserManagable(self: DevKind) bool { + pub fn isUserManageable(self: DevKind) bool { return switch (self) { .pcie, .pci => true, else => false, @@ -131,7 +131,7 @@ pub inline fn byKind(kind: DevKind) !ByKind { pub fn byAddress(reg_addr: usize, only_user_manageable: bool) !?Dev { var it = try iterator(); while (it.next()) |device| { - const authorized = !only_user_manageable or device.kind.isUserManagable(); + const authorized = !only_user_manageable or device.kind.isUserManageable(); if (device.reg.addr == reg_addr and authorized) return device; } else return null; } diff --git a/src/syscall.zig b/src/syscall.zig index 3a346ab..e30c0d8 100644 --- a/src/syscall.zig +++ b/src/syscall.zig @@ -138,7 +138,7 @@ fn threadId(proc: *const process.Info) usize { } pub const DeviceError = error{ - KindNotUserManagable, + KindNotUserManageable, DeviceNotFound, VirtualAddressOutOfRange, }; @@ -149,7 +149,7 @@ fn devicesByKind(trap_frame: *const TrapFrame) !usize { const devices: [*]hwinfo.Dev = @ptrFromInt(trap_frame.general_purpose_registers[11]); const len = trap_frame.general_purpose_registers[12]; - if (!kind.isUserManagable()) return DeviceError.KindNotUserManagable; + if (!kind.isUserManageable()) return DeviceError.KindNotUserManageable; var i: usize = 0; var devs = try hwinfo.byKind(kind); |