summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2018-07-11 11:51:05 -0700
committerShentubot <shentubot@google.com>2018-07-11 11:52:09 -0700
commitee0ef506d4060eaf0736997a56fd8490e2434495 (patch)
tree2e33e23c3c15a1796be11e6aa40db2dc0855ae99 /pkg/sentry/platform
parent81ae5f3df533d5e5990baaa105392f59e28d5730 (diff)
Add MemoryManager.Pin.
PiperOrigin-RevId: 204162313 Change-Id: Ib0593dde88ac33e222c12d0dca6733ef1f1035dc
Diffstat (limited to 'pkg/sentry/platform')
-rw-r--r--pkg/sentry/platform/platform.go4
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.
//