Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FilesystemType names for filesystem which are used in /proc/pid/mountinfo FilesystemTypeBPFFS = "bpf" FilesystemTypeCgroup2 = "cgroup2" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MountInfo ¶
type MountInfo struct {
MountID int64
ParentID int64
StDev string
Root string
MountPoint string
MountOptions string
OptionalFields []string
FilesystemType string
MountSource string
SuperOptions string
}
MountInfo is a struct representing information from /proc/pid/mountinfo. More information about file syntax: https://www.kernel.org/doc/Documentation/filesystems/proc.txt
func GetMountInfo ¶
GetMountInfo returns a slice of *MountInfo with information parsed from /proc/self/mountinfo
Click to show internal directories.
Click to hide internal directories.