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

Method Split

pkg/segment/set.go:96–96  ·  view source on GitHub ↗

Split splits a segment's value at a key within its range, such that the first returned value corresponds to the range [r.Start, split) and the second returned value corresponds to the range [split, r.End). Preconditions: r.Start < split < r.End. Postconditions: The original value val is invalidate

(r Range, val Value, split Key)

Source from the content-addressed store, hash-verified

94 //
95 // Postconditions: The original value val is invalidated.
96 Split(r Range, val Value, split Key) (Value, Value)
97}
98
99const (

Callers 15

addTypeAliasMethod · 0.65
findGlobalGuardMethod · 0.65
structLockGuardFactsMethod · 0.65
matchFieldListMethod · 0.65
addFailuresMethod · 0.65
testBinaryFunction · 0.65
processLineFunction · 0.65
consumeFieldUintFunction · 0.65
consumeFieldBoolFunction · 0.65
mainFunction · 0.65
getCurrentDriverFunction · 0.65
installDriverFunction · 0.65

Implementers 15

devAddrSetFuncspkg/sentry/devices/tpuproxy/accel/acce
devAddrSetFuncspkg/sentry/devices/tpuproxy/vfio/tpu_f
lockSetFunctionspkg/sentry/fsimpl/lock/lock_set_functi
aplUnloadedSetFunctionspkg/sentry/pgalloc/save_restore.go
unwasteSetFunctionspkg/sentry/pgalloc/pgalloc.go
unfreeSetFunctionspkg/sentry/pgalloc/pgalloc.go
memAcctSetFunctionspkg/sentry/pgalloc/pgalloc.go
evictableRangeSetFunctionspkg/sentry/pgalloc/pgalloc.go
syntheticTimerSetFunctionspkg/sentry/ktime/synthetic_timer.go
pmaSetFunctionspkg/sentry/mm/pma.go
vmaSetFunctionspkg/sentry/mm/vma.go
mappingSetFunctionspkg/sentry/memmap/mapping_set.go

Calls

no outgoing calls

Tested by 15

testBinaryFunction · 0.52
TestHostFeatureFlagsFunction · 0.52
TestFilterCapabilitiesFunction · 0.52
TestFdInfoContentFunction · 0.52
TestGroupSameNameMetricsFunction · 0.52
TestMetricProfilingFunction · 0.52
TestFffmpegEncodeGPUFunction · 0.52
TestFffmpegDecodeGPUFunction · 0.52
extractCodeFunction · 0.52
TestNvidiaSmiFunction · 0.52
getShimPIDsFunction · 0.52