udev: 장치 사용이 제거되면 이벤트가 전혀 추가되지 않습니다.

udev: 장치 사용이 제거되면 이벤트가 전혀 추가되지 않습니다.

사용 중에 USB 장치를 분리했다가 다시 연결하는 경우:

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

KERNEL[36.067804] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/dvb/dvb0.net0 (dvb)
...
UDEV  [36.081497] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/dvb/dvb0.dvr0 (dvb)

다시 삽입하면 add이벤트가 기록되지 않습니다.어떤 장치(키보드, 마우스, 블루투스 어댑터...)를 연결하든 상관없습니다..

USB 장치가 사용 중이 아닙니다. 연결했다가 분리하세요.

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

KERNEL[54.325134] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 (usb)
...
UDEV  [55.388867] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/rc/rc0/input0/event0 (input)
KERNEL[59.878645] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/dvb/dvb0.net0 (dvb)
...
UDEV  [59.965779] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 (usb)
KERNEL[64.311664] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 (usb)
...

특히 프로세스를 시작하지 않거나 플러그를 뽑거나 다시 연결하기 전에 프로세스를 중지할 때 더 많은 이벤트가 표시됩니다 add.

"차단" 장치를 사용하여 프로세스를 중지하면 모든 이벤트가 수신됩니다. 심지어 kernel:로그 kern.log메시지 도 받지 못합니다 messages.

커널 4.4, Debian 9.0(Raspbian 8.0이 Stretch 9.0으로 업그레이드됨)

Linux raspberrypi 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux

커널이 사용될 때 장치를 적절하게 등록 취소하고 다시 등록하지 못할 수 있다는 점을 이해합니다. 그런데 add어떤 장치에 대해서도 이벤트가 전혀 수신되지 않는 이유는 무엇입니까?

관련 정보