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

Interface MemoryEvent

cgroup1/memory.go:36–39  ·  view source on GitHub ↗

MemoryEvent is an interface that V1 memory Cgroup notifications implement. Arg returns the file name whose fd should be written to "cgroups.event_control". EventFile returns the name of the file that supports the notification api e.g. "memory.usage_in_bytes".

Source from the content-addressed store, hash-verified

34// file name whose fd should be written to "cgroups.event_control". EventFile returns the name of
35// the file that supports the notification api e.g. "memory.usage_in_bytes".
36type MemoryEvent interface {
37 Arg() string
38 EventFile() string
39}
40
41type memoryThresholdEvent struct {
42 threshold uint64

Callers 2

memoryEventMethod · 0.65
memoryEventMethod · 0.65

Implementers 3

memoryThresholdEventcgroup1/memory.go
oomEventcgroup1/memory.go
memoryPressureEventcgroup1/memory.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…