GetProcMounts retrieves mountinfo information from a processes' `/proc/ /mountinfo`.
(pid int)
| 199 | |
| 200 | // GetProcMounts retrieves mountinfo information from a processes' `/proc/<pid>/mountinfo`. |
| 201 | func (fs FS) GetProcMounts(pid int) ([]*MountInfo, error) { |
| 202 | data, err := readMountInfo(fs.proc.Path(fmt.Sprintf("%d/mountinfo", pid))) |
| 203 | if err != nil { |
| 204 | return nil, err |
| 205 | } |
| 206 | return parseMountInfo(data) |
| 207 | } |