Versions in this module Expand all Collapse all v0 v0.1.0 Jul 25, 2026 Changes in this version + type Device struct + func NewDeviceFromDeviceID(id string) *Device + func NewDeviceFromSubsystemSysname(subsystem, sysname string) *Device + func NewDeviceFromSyspath(syspath string) *Device + func (d *Device) Action() string + func (d *Device) Devnode() string + func (d *Device) Driver() string + func (d *Device) Parent() DeviceInfo + func (d *Device) Subsystem() string + func (d *Device) SysattrValue(sysattr string) string + func (d *Device) Sysname() string + func (d *Device) Syspath() string + type DeviceEnumerator interface + AddMatchParent func(parent DeviceInfo) error + AddMatchSubsystem func(subsystem string) (err error) + AddMatchSysattr func(sysattr, value string) (err error) + AddMatchSysname func(sysname string) (err error) + AddNomatchSubsystem func(subsystem string) (err error) + AddNomatchSysattr func(sysattr, value string) (err error) + AddSyspath func(syspath string) (err error) + Devices func() (it iter.Seq[DeviceInfo], err error) + Subsystems func() (it iter.Seq[string], err error) + type DeviceInfo interface + Action func() string + Devnode func() string + Driver func() string + Parent func() DeviceInfo + Subsystem func() string + SysattrValue func(sysattr string) string + Sysname func() string + Syspath func() string + type DeviceMonitor interface + EnableReceiving func() (err error) + FD func() int + FilterAddMatchSubsystem func(subsystem string) (err error) + FilterRemove func() (err error) + FilterUpdate func() (err error) + ReceiveDevice func() DeviceInfo + SetReceiveBufferSize func(size int) (err error) + type Enumerate struct + func NewEnumerate() *Enumerate + func (e *Enumerate) AddMatchParent(parent DeviceInfo) error + func (e *Enumerate) AddMatchSubsystem(subsystem string) (err error) + func (e *Enumerate) AddMatchSysattr(sysattr, value string) (err error) + func (e *Enumerate) AddMatchSysname(sysname string) (err error) + func (e *Enumerate) AddNomatchSubsystem(subsystem string) (err error) + func (e *Enumerate) AddNomatchSysattr(sysattr, value string) (err error) + func (e *Enumerate) AddSyspath(syspath string) (err error) + func (e *Enumerate) Devices() (it iter.Seq[DeviceInfo], err error) + func (e *Enumerate) Subsystems() (it iter.Seq[string], err error) + type Monitor struct + func NewMonitorFromNetlink(t MonitorType) *Monitor + func (m *Monitor) EnableReceiving() (err error) + func (m *Monitor) FD() int + func (m *Monitor) FilterAddMatchSubsystem(subsystem string) (err error) + func (m *Monitor) FilterRemove() (err error) + func (m *Monitor) FilterUpdate() (err error) + func (m *Monitor) ReceiveDevice() DeviceInfo + func (m *Monitor) SetReceiveBufferSize(size int) (err error) + type MonitorType uint + const MonitorKernel + const MonitorUdev + func (t MonitorType) Name() string