MCPcopy
hub / github.com/google/gvisor / SetMemoryFile

Method SetMemoryFile

pkg/sentry/kernel/kernel.go:1933–1935  ·  view source on GitHub ↗

SetMemoryFile sets Kernel.mf. SetMemoryFile must be called before Init or LoadFrom.

(mf *pgalloc.MemoryFile)

Source from the content-addressed store, hash-verified

1931// SetMemoryFile sets Kernel.mf. SetMemoryFile must be called before Init or
1932// LoadFrom.
1933func (k *Kernel) SetMemoryFile(mf *pgalloc.MemoryFile) {
1934 k.mf = mf
1935}
1936
1937// MemoryFile returns the MemoryFile that provides application memory.
1938func (k *Kernel) MemoryFile() *pgalloc.MemoryFile {

Callers 4

BootFunction · 0.95
ContextFunction · 0.95
NewFunction · 0.80
restoreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected