Replace syscall::Scheme with KernelScheme.
This commit is contained in:
@@ -20,7 +20,7 @@ use crate::context::memory::AddrSpace;
|
||||
use crate::ipi::{ipi, IpiKind, IpiTarget};
|
||||
use crate::paging::{RmmA, RmmArch};
|
||||
use crate::memory::{RaiiFrame, Frame};
|
||||
use crate::scheme::{SchemeNamespace, FileHandle};
|
||||
use crate::scheme::{SchemeNamespace, FileHandle, CallerCtx};
|
||||
use crate::sync::WaitMap;
|
||||
|
||||
use crate::syscall::data::SigAction;
|
||||
@@ -472,6 +472,9 @@ impl Context {
|
||||
0
|
||||
); 128]))
|
||||
}
|
||||
pub fn caller_ctx(&self) -> CallerCtx {
|
||||
CallerCtx { pid: self.id.into(), uid: self.euid, gid: self.egid }
|
||||
}
|
||||
}
|
||||
|
||||
/// Wrapper struct for borrowing the syscall head or tail buf.
|
||||
|
||||
Reference in New Issue
Block a user