MCPcopy Index your code
hub / github.com/containerd/containerd / getNamespaceInode

Function getNamespaceInode

pkg/sys/unshare_linux_test.go:171–178  ·  view source on GitHub ↗
(pid int, typ string)

Source from the content-addressed store, hash-verified

169}
170
171func getNamespaceInode(pid int, typ string) (uint64, error) {
172 info, err := os.Stat(fmt.Sprintf("/proc/%d/ns/%s", pid, typ))
173 if err != nil {
174 return 0, err
175 }
176
177 return info.Sys().(*syscall.Stat_t).Ino, nil
178}

Calls 2

StatMethod · 0.65
SysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…