udev

package
v0.0.0-...-1e218f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintUEvent

func PrintUEvent(evt netlink.UEvent)

Types

type UDev

type UDev struct {

	// Used to listen to events from udev
	UDevEvents *eventemitter.Emitter
	// Used to listen to events from the Kernel
	KernelEvents *eventemitter.Emitter
	// contains filtered or unexported fields
}

func CreateUDev

func CreateUDev() (*UDev, error)

func (*UDev) Close

func (u *UDev) Close() error

func (*UDev) WriteUDevEvent

func (u *UDev) WriteUDevEvent(evt netlink.UEvent) error

type UDevNetlinkConnection

type UDevNetlinkConnection struct {
	netlink.UEventConn
	// contains filtered or unexported fields
}
func NewUdevNetlink(mode netlink.Mode) (*UDevNetlinkConnection, error)

func (*UDevNetlinkConnection) Close

func (c *UDevNetlinkConnection) Close() error

func (*UDevNetlinkConnection) Write

func (c *UDevNetlinkConnection) Write(event netlink.UEvent) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL