MCPcopy
hub / github.com/opencontainers/runc / mkPtr

Function mkPtr

libcontainer/criu_linux.go:113–113  ·  view source on GitHub ↗

TODO: replace with new(v) once Go < 1.26 is not supported.

(v T)

Source from the content-addressed store, hash-verified

111
112// TODO: replace with new(v) once Go < 1.26 is not supported.
113func mkPtr[T any](v T) *T { return &v }
114
115func (c *Container) addCriuDumpMount(req *criurpc.CriuReq, m *configs.Mount) {
116 mountDest := strings.TrimPrefix(m.Destination, c.config.Rootfs)

Callers 11

addCriuDumpMountMethod · 0.70
addMaskPathsMethod · 0.70
CheckpointMethod · 0.70
addCriuRestoreMountMethod · 0.70
restoreNetworkMethod · 0.70
RestoreMethod · 0.70
criuApplyCgroupsMethod · 0.70
criuSwrkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…