From 1cdffe21b11a7e0aec8224c7f1bc684f604bad79 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Sun, 12 Jul 2026 16:19:09 +0100 Subject: [PATCH] fixing comments --- library/runtime/input.zig | 3 ++- system/devices/acpi.zig | 6 ++++-- system/drivers/ps2-bus/ps2-library.zig | 3 ++- system/services/vfs/protocol.zig | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/library/runtime/input.zig b/library/runtime/input.zig index bac3f4d..64a771a 100644 --- a/library/runtime/input.zig +++ b/library/runtime/input.zig @@ -37,7 +37,8 @@ pub const MouseEventKind = protocol.MouseEventKind; pub const JoystickEventKind = protocol.JoystickEventKind; pub const Keycode = protocol.Keycode; -/// Interest masks re-exported so a caller can `subscribe(input.device_keyboard | input.device_mouse)`. +/// Interest masks re-exported so a caller can `subscribe(input.device_keyboard | +/// input.device_mouse)`. pub const device_keyboard = protocol.device_keyboard; pub const device_mouse = protocol.device_mouse; pub const device_joystick = protocol.device_joystick; diff --git a/system/devices/acpi.zig b/system/devices/acpi.zig index 2f13a49..2f68c15 100644 --- a/system/devices/acpi.zig +++ b/system/devices/acpi.zig @@ -52,7 +52,8 @@ pub const PowerInformation = struct { reset: RegisterAccess = .{}, reset_value: u8 = 0, reset_supported: bool = false, - /// SLP_TYP values for S5 (soft off) and S3 (suspend), from the AML sleep-state (`_Sx`) packages. + /// SLP_TYP values for S5 (soft off) and S3 (suspend), from the AML sleep-state (`_Sx`) + /// packages. s5: ?aml.SleepType = null, s3: ?aml.SleepType = null, }; @@ -198,7 +199,8 @@ const ExtendedSystemDescriptorPointer = extern struct { root_system_description_table_address: u32 align(1), /// The size of the RSDP. length: u32 align(1), - /// A 64-bit physical address pointing to the XSDT. If the revision is at least 2, the XSDT should be used regardless of architecture, as the RSDT was deprecated. + /// A 64-bit physical address pointing to the XSDT. If the revision is at least 2, the XSDT + /// should be used regardless of architecture, as the RSDT was deprecated. extended_system_descriptor_table_address: u64 align(1), /// A checksum used for the entire table. extended_checksum: u8, diff --git a/system/drivers/ps2-bus/ps2-library.zig b/system/drivers/ps2-bus/ps2-library.zig index 22bbaf8..944a091 100644 --- a/system/drivers/ps2-bus/ps2-library.zig +++ b/system/drivers/ps2-bus/ps2-library.zig @@ -146,7 +146,8 @@ pub fn readData(id: u64, status_index: u64, data_index: u64, timeout_nanoseconds } pub fn writeData(id: u64, status_index: u64, data_index: u64, byte: u8, timeout_nanoseconds: u64) bool { - // IBF lives in the status register (0x64); wait for it to clear there, then write the data port (0x60) + // IBF lives in the status register (0x64); wait for it to clear there, then write the data port + // (0x60) if (!waitWritable(id, status_index, timeout_nanoseconds)) return false; return device.ioWrite(id, data_index, 0, 1, byte); } diff --git a/system/services/vfs/protocol.zig b/system/services/vfs/protocol.zig index 397be77..c2ce854 100644 --- a/system/services/vfs/protocol.zig +++ b/system/services/vfs/protocol.zig @@ -8,8 +8,8 @@ //! spellings (`stat`, `O_CREAT`, ...) live only in the POSIX layer //! (library/posix/unistd.zig), which translates to these. //! -//! This is user-space only — the kernel knows nothing of files or paths; it only -//! moves the bytes. Shared by library/posix/unistd.zig (client) and system/services/vfs/vfs.zig (server). +//! This is user-space only — the kernel knows nothing of files or paths; it only moves the bytes. +//! Shared by library/posix/unistd.zig (client) and system/services/vfs/vfs.zig (server). pub const Operation = enum(u32) { open, // open(path) -> node id