最終更新:2015-10-22 (木) 07:51:41 (1725d)  

udevadm monitor
Top / udevadm monitor

udevadm monitor --udev

udevadm monitor --env

udevadm monitor --env
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[7424.893413] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2 (usb)
ACTION=add
BUSNUM=001
DEVNAME=bus/usb/001/007
DEVNUM=007
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2
DEVTYPE=usb_device
MAJOR=189
MINOR=6
PRODUCT=557/2008/300
SEQNUM=1529
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3

KERNEL[7424.896181] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v0557p2008d0300dc00dsc00dp00icFFisc00ip00
PRODUCT=557/2008/300
SEQNUM=1530
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3

KERNEL[7424.930260] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0 (usb-serial)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0
SEQNUM=1531
SUBSYSTEM=usb-serial
UDEV_LOG=3

KERNEL[7424.930716] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0 (tty)
ACTION=add
DEVNAME=ttyUSB0
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0
MAJOR=188
MINOR=0
SEQNUM=1532
SUBSYSTEM=tty
UDEV_LOG=3

UDEV  [7424.934711] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2 (usb)
ACTION=add
BUSNUM=001
DEVNAME=/dev/bus/usb/001/007
DEVNUM=007
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2
DEVTYPE=usb_device
ID_BUS=usb
ID_MM_DEVICE_IGNORE=1
ID_MODEL=USB-Serial_Controller_D
ID_MODEL_ENC=USB-Serial\x20Controller\x20D
ID_MODEL_ID=2008
ID_REVISION=0300
ID_SERIAL=Prolific_Technology_Inc._USB-Serial_Controller_D
ID_USB_INTERFACES=:ff0000:
ID_VENDOR=Prolific_Technology_Inc.
ID_VENDOR_ENC=Prolific\x20Technology\x20Inc.\x20
ID_VENDOR_ID=0557
MAJOR=189
MINOR=6
PRODUCT=557/2008/300
SEQNUM=1529
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
USEC_INITIALIZED=7424933726

UDEV  [7424.947321] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v0557p2008d0300dc00dsc00dp00icFFisc00ip00
PRODUCT=557/2008/300
SEQNUM=1530
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
USEC_INITIALIZED=7424934414

UDEV  [7424.948845] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0 (usb-serial)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0
SEQNUM=1531
SUBSYSTEM=usb-serial
UDEV_LOG=3
USEC_INITIALIZED=7424948748

UDEV  [7424.969969] add      /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0 (tty)
ACTION=add
DEVLINKS=/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 /dev/serial/by-path/pci-0000:00:06.0-usb-0:2:1.0-port0
DEVNAME=/dev/ttyUSB0
DEVPATH=/devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0
ID_BUS=usb
ID_MM_CANDIDATE=1
ID_MODEL=USB-Serial_Controller_D
ID_MODEL_ENC=USB-Serial\x20Controller\x20D
ID_MODEL_FROM_DATABASE=UC-232A Serial Port [pl2303]
ID_MODEL_ID=2008
ID_PATH=pci-0000:00:06.0-usb-0:2:1.0
ID_PATH_TAG=pci-0000_00_06_0-usb-0_2_1_0
ID_REVISION=0300
ID_SERIAL=Prolific_Technology_Inc._USB-Serial_Controller_D
ID_TYPE=generic
ID_USB_DRIVER=pl2303
ID_USB_INTERFACES=:ff0000:
ID_USB_INTERFACE_NUM=00
ID_VENDOR=Prolific_Technology_Inc.
ID_VENDOR_ENC=Prolific\x20Technology\x20Inc.\x20
ID_VENDOR_FROM_DATABASE=ATEN International Co., Ltd
ID_VENDOR_ID=0557
MAJOR=188
MINOR=0
SEQNUM=1532
SUBSYSTEM=tty
UDEV_LOG=3
USEC_INITIALIZED=7424969832