diff options
author | Jamie Liu <jamieliu@google.com> | 2018-07-11 11:51:05 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-07-11 11:52:09 -0700 |
commit | ee0ef506d4060eaf0736997a56fd8490e2434495 (patch) | |
tree | 2e33e23c3c15a1796be11e6aa40db2dc0855ae99 /pkg/sentry/platform | |
parent | 81ae5f3df533d5e5990baaa105392f59e28d5730 (diff) |
Add MemoryManager.Pin.
PiperOrigin-RevId: 204162313
Change-Id: Ib0593dde88ac33e222c12d0dca6733ef1f1035dc
Diffstat (limited to 'pkg/sentry/platform')
-rw-r--r-- | pkg/sentry/platform/platform.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/platform/platform.go b/pkg/sentry/platform/platform.go index 1c385bc5a..f2fe163e8 100644 --- a/pkg/sentry/platform/platform.go +++ b/pkg/sentry/platform/platform.go @@ -305,8 +305,8 @@ type File interface { MapInto(as AddressSpace, addr usermem.Addr, fr FileRange, at usermem.AccessType, precommit bool) error // MapInternal returns a mapping of the given file offsets in the invoking - // process' address space for reading and writing. The lifetime of the - // returned mapping is implementation-defined. + // process' address space for reading and writing. The returned mapping is + // valid as long as a reference is held on the mapped range. // // Note that fr.Start and fr.End need not be page-aligned. // |