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

Function writeSyncArg

libcontainer/sync.go:116–123  ·  view source on GitHub ↗
(pipe *syncSocket, sync syncType, arg any)

Source from the content-addressed store, hash-verified

114}
115
116func writeSyncArg(pipe *syncSocket, sync syncType, arg any) error {
117 argJSON, err := json.Marshal(arg)
118 if err != nil {
119 return fmt.Errorf("writing sync %v: marshal argument failed: %w", sync, err)
120 }
121 argJSONMsg := json.RawMessage(argJSON)
122 return doWriteSync(pipe, syncT{Type: sync, Arg: &argJSONMsg})
123}
124
125func doReadSync(pipe *syncSocket) (syncT, error) {
126 var sync syncT

Callers 3

setupAndMountToRootfsFunction · 0.85
startInitializationFunction · 0.85
syncParentSeccompFunction · 0.85

Calls 1

doWriteSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…