[Mammoth] Add a helper method for duplicating memory capabilities.
This commit is contained in:
parent
8e827a5dfb
commit
deb2e708cd
3 changed files with 9 additions and 4 deletions
|
|
@ -53,7 +53,8 @@ class OwnedMemoryRegion {
|
|||
uint64_t vaddr() { return vaddr_; }
|
||||
uint64_t size() { return size_; }
|
||||
|
||||
uint64_t cap() { return vmmo_cap_; }
|
||||
z_cap_t cap() { return vmmo_cap_; }
|
||||
z_cap_t DuplicateCap();
|
||||
|
||||
bool empty() { return vmmo_cap_ != 0; }
|
||||
explicit operator bool() { return vmmo_cap_ != 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue