On Sat, Apr 21, 2007 at 12:45:35PM +0200, Sebastien Bourdeauducq wrote: > Hi, > > I'm trying in vain to get udev to create device nodes for my new driver. > I've read that udev monitors sysfs for files named "dev" and then creates > the nodes accordingly, so I added an entry in /sys like other drivers do : > > # cat /sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.3/dev > 254:0 > # There is no need for this. > > (am I creating the "dev" file in the right place ?) > > Udev still ignored my driver, so I added the following lines to > /etc/udev/rules.d/udev.rules, but with no result : > > KERNEL=="freshtel", NAME="freshtel" > KERNEL=="freshtel[0-9]*", NAME="freshtel%n" > > Any suggestion ? This neither. What you want is class_create() and device_create(), see section about udev in LDD3, available at http://lwn.net/Kernel/LDD3/. Hope this helps. Thomas -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ