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

Method DecRef

pkg/sentry/memmap/memmap.go:460–460  ·  view source on GitHub ↗

DecRef decrements the reference count on all pages in fr. Preconditions: * fr.Start and fr.End must be page-aligned. * fr.Length() > 0. * At least one reference must be held on all pages in fr.

(fr FileRange)

Source from the content-addressed store, hash-verified

458 // * fr.Length() > 0.
459 // * At least one reference must be held on all pages in fr.
460 DecRef(fr FileRange)
461
462 // MapInternal returns a mapping of the given file offsets in the invoking
463 // process' address space for reading and writing.

Callers 15

StartContainerMethod · 0.65
SaveRestoreExecFunction · 0.65
TarRootfsUpperLayerMethod · 0.65
catFunction · 0.65
invokeCudaCheckpointFunction · 0.65
toggleCudaProcsFunction · 0.65
execAsyncMethod · 0.65
ConfigureMMapMethod · 0.65
vfioSetIrqsMethod · 0.65
setContainerMethod · 0.65

Calls

no outgoing calls

Tested by 11

newTestFDFunction · 0.52
runTestFunction · 0.52
TestFDTableFunction · 0.52
BenchmarkForkFunction · 0.52
BenchmarkCreateWithMaxFDFunction · 0.52
runTestFunction · 0.52
TestCreateMountNamespaceFunction · 0.52
TestCreateMountPointFunction · 0.52
newMockFileDescriptionFunction · 0.52