MCPcopy Create free account
hub / github.com/containerd/cgroups / AddProc

Method AddProc

cgroup2/manager.go:402–408  ·  view source on GitHub ↗
(pid uint64)

Source from the content-addressed store, hash-verified

400}
401
402func (c *Manager) AddProc(pid uint64) error {
403 v := Value{
404 filename: cgroupProcs,
405 value: pid,
406 }
407 return writeValues(c.path, []Value{v})
408}
409
410func (c *Manager) AddThread(tid uint64) error {
411 v := Value{

Callers 2

TestKillFunction · 0.95
TestMoveToFunction · 0.95

Calls 1

writeValuesFunction · 0.85

Tested by 2

TestKillFunction · 0.76
TestMoveToFunction · 0.76