From 4e27e9d90b8dc7c7ddb3fa98f381c99093e07b5b Mon Sep 17 00:00:00 2001 From: Ruihan Li Date: Tue, 2 Sep 2025 08:54:11 +0800 Subject: [PATCH] Use "I/O" instead "IO" --- kernel/src/util/iovec.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/src/util/iovec.rs b/kernel/src/util/iovec.rs index ede3debca..8fdee645e 100644 --- a/kernel/src/util/iovec.rs +++ b/kernel/src/util/iovec.rs @@ -4,14 +4,14 @@ use ostd::mm::{Infallible, VmSpace}; use crate::prelude::*; -/// A kernel space IO vector. +/// A kernel space I/O vector. #[derive(Debug, Clone, Copy)] struct IoVec { base: Vaddr, len: usize, } -/// A user space IO vector. +/// A user space I/O vector. /// /// The difference between `IoVec` and `UserIoVec` /// is that `UserIoVec` uses `isize` as the length type, @@ -28,7 +28,7 @@ impl TryFrom for IoVec { fn try_from(value: UserIoVec) -> Result { if value.len < 0 { - return_errno_with_message!(Errno::EINVAL, "the length of IO vector cannot be negative"); + return_errno_with_message!(Errno::EINVAL, "the I/O buffer length cannot be negative"); } Ok(IoVec {