mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Rename various concepts related to memory management
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
03a39c94ca
commit
14e1b1a9fc
@ -2,7 +2,7 @@
|
||||
|
||||
use core::ops::Range;
|
||||
|
||||
use aster_frame::vm::{VmFrame, VmIo};
|
||||
use aster_frame::mm::{Frame, VmIo};
|
||||
use aster_rights::{Rights, TRights};
|
||||
|
||||
use super::{
|
||||
@ -68,7 +68,7 @@ impl Vmo<Rights> {
|
||||
}
|
||||
|
||||
/// commit a page at specific offset
|
||||
pub fn commit_page(&self, offset: usize) -> Result<VmFrame> {
|
||||
pub fn commit_page(&self, offset: usize) -> Result<Frame> {
|
||||
self.check_rights(Rights::WRITE)?;
|
||||
self.0.commit_page(offset, false)
|
||||
}
|
||||
|
Reference in New Issue
Block a user