const eventSize … const numFdEvents … type linuxCgroupNotifier … var _ … // NewCgroupNotifier returns a linuxCgroupNotifier, which performs cgroup control operations required // to receive notifications from the cgroup when the threshold is crossed in either direction. func NewCgroupNotifier(path, attribute string, threshold int64) (CgroupNotifier, error) { … } func (n *linuxCgroupNotifier) Start(eventCh chan<- struct{ … } // wait waits up to notifierRefreshInterval for an event on the Epoll FD for the // eventfd we are concerned about. It returns an error if one occurs, and true // if the consumer should read from the eventfd. func wait(epfd, eventfd int, timeout time.Duration) (bool, error) { … } func (n *linuxCgroupNotifier) Stop() { … } type disabledThresholdNotifier … func (*disabledThresholdNotifier) Start(_ chan<- struct{ … } func (*disabledThresholdNotifier) Stop() { … }