usb devices
Alan McKinnon
alan at linuxholdings.co.za
Tue Mar 21 12:46:18 UTC 2006
On Tuesday 21 March 2006 05:31, Jay Ridgley wrote:
> Folks,
>
> What are the device names for the usb ports and are makenode
> commands needed to activate them?
usb ports don't have names, at least not in the way /dev/tty*
and /dev/lp* have names. The devices themselves are enumerated deep
down in /sys
usb is hotpluggable and the device node should not exist till the
device is plugged in, so you don't mknod them. The tool you want is
udev
Briefly, the kernel detects a new device on the usb bus and loads the
module for it, then calls a userspace program which
consults /etc/udev/* to create the node in /dev. Then your apps can
use the node.
--
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
More information about the ubuntu-users
mailing list