Versions in this module Expand all Collapse all v0 v0.1.1 Aug 4, 2022 Changes in this version + const NOTINUSEPID + const UNCERTAINPID + func FileIsInUseByPids(filename string) ([]int64, bool, error) + func ListByDev() ([]string, error) + func ListById() (map[string]string, error) + func ListByPath() (map[string]string, error) + func ListOfSerialTTYDriverPrefixes() ([]string, error) + func ListOpenFilesByPid(pid int64) ([]string, error) + type ByDeviceName []Entry + func (a ByDeviceName) Len() int + func (a ByDeviceName) Less(i, j int) bool + func (a ByDeviceName) Swap(i, j int) + type DirEntryArr []fs.DirEntry + func ReadDirEntryArr(filesys fs.FS, name string) (DirEntryArr, error) + func (p *DirEntryArr) DirsOnly(addPath string) []string + func (p *DirEntryArr) FilesOnly(addPath string) []string + func (p *DirEntryArr) NumberFiles() []int64 + func (p *DirEntryArr) ResolvedNames(pathname string, skipUnresolved bool) ([]string, []error) + type Entry struct + Certain bool + DeviceByID string + DeviceByPath string + DeviceFile string + UsedByPids []int64 + func NewEntries(oldEntrys []Entry, newEntrys []Entry) []Entry + func Probe(checkSerialBy bool) ([]Entry, error) + func Updates(oldEntrys []Entry, newEntrys []Entry) []Entry + func (p *Entry) Equal(a Entry) bool + func (p *Entry) HasAny(portname string) bool + func (p *Entry) ToPrintoutFormat() string + type FilepathLinkEvaluator struct + func (p FilepathLinkEvaluator) Eval(filename string) (string, error) + type SymlinkEvaluator interface + Eval func(string) (string, error)