Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for walkFuncs (0.23 sec)

  1. src/cmd/link/internal/ld/pcln.go

    	// Create the runtimeText relocation.
    	sb := ldr.MakeSymbolUpdater(state.pcheader)
    	sb.SetAddr(ctxt.Arch, textStartOff, ldr.Lookup("runtime.text", 0))
    }
    
    // walkFuncs iterates over the funcs, calling a function for each unique
    // function and inlined function.
    func walkFuncs(ctxt *Link, funcs []loader.Sym, f func(loader.Sym)) {
    	ldr := ctxt.loader
    	seen := make(map[loader.Sym]struct{})
    	for _, s := range funcs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. src/path/filepath/path.go

    		return string(buf), nil
    	}
    	return targ[t0:], nil
    }
    
    // SkipDir is used as a return value from [WalkFunc] to indicate that
    // the directory named in the call is to be skipped. It is not returned
    // as an error by any function.
    var SkipDir error = fs.SkipDir
    
    // SkipAll is used as a return value from [WalkFunc] to indicate that
    // all remaining files and directories are to be skipped. It is not returned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/fsys/fsys.go

    	return false, firstErr
    }
    
    // walk recursively descends path, calling walkFn. Copied, with some
    // modifications from path/filepath.walk.
    func walk(path string, info fs.FileInfo, walkFn filepath.WalkFunc) error {
    	if err := walkFn(path, info, nil); err != nil || !info.IsDir() {
    		return err
    	}
    
    	fis, err := ReadDir(path)
    	if err != nil {
    		return walkFn(path, info, err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. pkg/volume/util/subpath/subpath_linux.go

    		// so it was replaced with filepath.Walk in a later patch, which can pass through error and handled by the callback WalkFunc.
    		// After go 1.16, WalkDir was introduced, it's more effective than Walk because the callback WalkDirFunc is called before
    		// reading a directory, making it save some time when a container's subPath contains lots of dirs.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cgroup_manager_linux.go

    			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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
Back to top