[Yellowstone] Allow registering denali.
This commit is contained in:
parent
c9b484089e
commit
e90018b42e
7 changed files with 195 additions and 26 deletions
|
|
@ -78,6 +78,10 @@ impl MemoryRegion {
|
|||
pub fn cap(&self) -> &Capability {
|
||||
&self.mem_cap
|
||||
}
|
||||
|
||||
pub fn duplicate(&self, offset: u64, length: u64) -> Result<Capability, ZError> {
|
||||
syscall::memory_obj_duplicate(&self.mem_cap, offset, length)
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for MemoryRegion {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue