How does udev work and what does it do?

Is udev running as a process or is something triggering it (what process is that)? Would it make any difference if xorg is running in a jail?
 
Dumb question, but I tried adding a configuration file in /usr/local/etc/X11/xorg.conf.d/input.conf:


Code:
# https://github.com/FreeBSDDesktop/libudev-devd
Section "InputClass"
    Identifier    "USB mice"
    MatchDevicePath    "/dev/ums*"
    Driver        "mouse"
EndSection

Section "InputClass"
    Identifier    "kbdmux"
    MatchDevicePath    "/dev/kbdmux*"
    Driver        "kbd"
EndSection

After X is started in my jail and I plug in a keyboard or mouse, I do see the corresponding device under /dev/ums* or /dev/kbd*. But, Xorg is not seeing those. That is why I am asking about udev. Is there some other trick, ie. is there a command that can say, xorg add input device /dev/ums0 and when it is removed, xorg remove input device /dev/ums0?
 
Back
Top