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

Method String

pkg/sentry/pgalloc/pgalloc.go:1803–1807  ·  view source on GitHub ↗

String implements fmt.Stringer.String.

()

Source from the content-addressed store, hash-verified

1801
1802// String implements fmt.Stringer.String.
1803func (f *MemoryFile) String() string {
1804 f.mu.Lock()
1805 defer f.mu.Unlock()
1806 return f.stringLocked()
1807}
1808
1809// Preconditions: f.mu must be locked.
1810func (f *MemoryFile) stringLocked() string {

Callers

nothing calls this directly

Calls 3

stringLockedMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected