(pid int, typ string)
| 169 | } |
| 170 | |
| 171 | func 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 | } |
no test coverage detected
searching dependent graphs…