From github.com/gentoo/eudev