code: func (m *cgroupManagerImpl) Pids(name CgroupName) []int {
  	// we need the driver specific name
  	cgroupFsName := m.Name(name)
  
  	// Get a list of processes that we need to kill
  	pidsToKill := sets.NewInt()
  	var pids []int
  	for _, val := range m.subsystems.MountPoints {
  		dir := path.Join(val, cgroupFsName)
  		_, err := os.Stat(dir)
  		if os.IsNotExist(err) {
  			// The subsystem pod cgroup is already deleted
  			// do nothing, continue
  			continue
  		}
  		// Get a list of pids that are still charged to the pod's cgroup
  		pids, err = getCgroupProcs(dir)
  		if err != nil {
  			continue
  		}
  		pidsToKill.Insert(pids...)
  
  		// WalkFunc which is called for each file and directory in the pod cgroup dir
  		visitor := func(path string, info os.FileInfo, err error) error {
  			if err != nil {
  				klog.V(4).Infof("cgroup manager encountered error scanning cgroup path %q: %v", path, err)
  				return filepath.SkipDir
  			}
  			if !info.IsDir() {
  				return nil
  			}
  			pids, err = getCgroupProcs(path)
  			if err != nil {
  				klog.V(4).Infof("cgroup manager encountered error getting procs for cgroup path %q: %v", path, err)
  				return filepath.SkipDir
  			}
  			pidsToKill.Insert(pids...)
  			return nil
  		}
  		// Walk through the pod cgroup directory to check if
  		// container cgroups haven't been GCed yet. Get attached processes to
  		// all such unwanted containers under the pod cgroup
  		if err = filepath.Walk(dir, visitor); err != nil {
  			klog.V(4).Infof("cgroup manager encountered error scanning pids for directory: %q: %v", dir, err)
  		}
  	}
  	return pidsToKill.List()
  }
docs: // Scans through all subsystems to find pids associated with specified cgroup.