Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + func CheckTranslateResult(required, optional MappableRange, at hostarch.AccessType, ts []Translation, ...) error + type BusError struct + Err error + func (b *BusError) Error() string + type File interface + DecRef func(fr FileRange) + FD func() int + IncRef func(fr FileRange, memCgID uint32) + MapInternal func(fr FileRange, at hostarch.AccessType) (safemem.BlockSeq, error) + type InvalidateOpts struct + InvalidatePrivate bool + type MLockMode int + const MLockEager + const MLockLazy + const MLockNone + type MMapOpts struct + Addr hostarch.Addr + Fixed bool + Force bool + GrowsDown bool + Hint string + Length uint64 + MLockMode MLockMode + Map32Bit bool + Mappable Mappable + MappingIdentity MappingIdentity + MaxPerms hostarch.AccessType + Offset uint64 + Perms hostarch.AccessType + PlatformEffect MMapPlatformEffect + Private bool + SentryOwnedContent bool + Unmap bool + type MMapPlatformEffect uint8 + const PlatformEffectCommit + const PlatformEffectDefault + const PlatformEffectPopulate + type Mappable interface + AddMapping func(ctx context.Context, ms MappingSpace, ar hostarch.AddrRange, offset uint64, ...) error + CopyMapping func(ctx context.Context, ms MappingSpace, srcAR, dstAR hostarch.AddrRange, ...) error + InvalidateUnsavable func(ctx context.Context) error + RemoveMapping func(ctx context.Context, ms MappingSpace, ar hostarch.AddrRange, offset uint64, ...) + Translate func(ctx context.Context, required, optional MappableRange, at hostarch.AccessType) ([]Translation, error) + type MappingIdentity interface + DecRef func(ctx context.Context) + DeviceID func() uint64 + IncRef func() + InodeID func() uint64 + MappedName func(ctx context.Context) string + Msync func(ctx context.Context, mr MappableRange) error + type MappingOfRange struct + AddrRange hostarch.AddrRange + MappingSpace MappingSpace + Writable bool + func (r MappingOfRange) String() string + type MappingSpace interface + Invalidate func(ar hostarch.AddrRange, opts InvalidateOpts) + type MappingsOfRange map[MappingOfRange]struct + type Translation struct + File File + Offset uint64 + Perms hostarch.AccessType + Source MappableRange + func (t Translation) FileRange() FileRange