diff --git a/framework/aster-frame/src/mm/space.rs b/framework/aster-frame/src/mm/space.rs index c33601c6a..090b72a84 100644 --- a/framework/aster-frame/src/mm/space.rs +++ b/framework/aster-frame/src/mm/space.rs @@ -127,6 +127,8 @@ impl VmSpace { /// Query about the mapping information about a byte in virtual memory. /// This is more handy than [`query_range`], but less efficient if you want /// to query in a batch. + /// + /// [`query_range`]: VmSpace::query_range pub fn query(&self, vaddr: Vaddr) -> Result> { if !(0..MAX_USERSPACE_VADDR).contains(&vaddr) { return Err(Error::AccessDenied); diff --git a/framework/aster-frame/src/sync/wait.rs b/framework/aster-frame/src/sync/wait.rs index 50bd342f2..0913d1084 100644 --- a/framework/aster-frame/src/sync/wait.rs +++ b/framework/aster-frame/src/sync/wait.rs @@ -160,7 +160,7 @@ impl !Sync for Waiter {} /// A waker that can wake up the associated [`Waiter`]. /// -/// A waker can be created by calling [`Waiter::new`]. This method creates an `Arc` that can +/// A waker can be created by calling [`Waiter::new_pair`]. This method creates an `Arc` that can /// be used across different threads. pub struct Waker { has_woken: AtomicBool,