go-udev icon indicating copy to clipboard operation
go-udev copied to clipboard

Simple udev implementation in Golang

Results 10 go-udev issues
Sort by recently updated
recently updated
newest added

The output of struct's `String()` suppose to be consumed as a formatted text primarily by a human. With something like this `fmt.Printf("%+v", event)`. Unfortunately current `String()` has a number of...

Hi, Id like to be able to use info mode and have a matcher that can find a USB device with a specific serial number. The monitor mode seems to...

I am using this on a small project and I required the Devnode and Syspath of a hardware device, I was not sure what property they were in the netlink.UEvent.Env...

Add Dockerfile for both `-info` and `-monitor` mode. Related to #23

enhancement
quality
ci

Kernel version 4.14.81 mips GNU/Linux Openwrt monitor does not detect any device

Hello! When I try to run it in docker, it does not work!Then I add --net=host and rerun it is ok~ While the command "udevadm monitor" could run it in...

See issue: #13 And see test: https://github.com/pilebones/go-udev/blob/master/netlink/uevent_test.go#L67-L70 From tests, the input byte data is hard-coded for little-endian architectures. We should also manage big-endian architectures.

https://github.com/pilebones/go-udev/blob/master/netlink/conn.go#L126 Change historical interface ```go func (c *UEventConn) Monitor(queue chan UEvent, errs chan error, matcher Matcher) chan struct{} { ``` By something like that: ```go func (c *UEventConn) Monitor(ctx context.Context,...

Use correctly the go scheduler when reading the netlink file descriptor. By this way, the scheduler go could manage the select block (from monitor mode) correctly because when reading using...

enhancement