gvisor/pkg/sentry/memmap
Jamie Liu 8930e79ebf Clarify the platform.File interface.
- Redefine some memmap.Mappable, platform.File, and platform.Memory
semantics in terms of File reference counts (no functional change).

- Make AddressSpace.MapFile take a platform.File instead of a raw FD,
and replace platform.File.MapInto with platform.File.FD. This allows
kvm.AddressSpace.MapFile to always use platform.File.MapInternal instead
of maintaining its own (redundant) cache of file mappings in the sentry
address space.

PiperOrigin-RevId: 238044504
Change-Id: Ib73a11e4275c0da0126d0194aa6c6017a9cef64f
2019-03-12 10:29:16 -07:00
..
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
mapping_set.go Pass information about map writableness to filesystems. 2018-12-12 13:09:59 -08:00
mapping_set_test.go Pass information about map writableness to filesystems. 2018-12-12 13:09:59 -08:00
memmap.go Clarify the platform.File interface. 2019-03-12 10:29:16 -07:00