Documentation
¶
Overview ¶
Package loader loads a binary into a MemoryManager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, m *mm.MemoryManager, mounts *fs.MountNamespace, root, wd *fs.Dirent, maxTraversals uint, fs *cpuid.FeatureSet, filename string, argv, envv []string, extraAuxv []arch.AuxEntry, vdso *VDSO) (abi.OS, arch.Context, string, error)
Load loads filename into a MemoryManager.
If Load returns ErrSwitchFile it should be called again with the returned path and argv.
Preconditions:
- The Task MemoryManager is empty.
- Load is called on the Task goroutine.
Types ¶
type VDSO ¶
type VDSO struct { // ParamPage is the VDSO parameter page. This page should be updated to // inform the VDSO for timekeeping data. ParamPage *mm.SpecialMappable // contains filtered or unexported fields }
VDSO describes a VDSO.
NOTE: to support multiple architectures or operating systems, this would need to contain a VDSO for each.
Click to show internal directories.
Click to hide internal directories.