you'll need to write a script that parses the /proc/devices to find your device and get the number. The Linux Device Drivers book has a script that does this in it. Tom On Monday 30 June 2003 4:24 pm, S P wrote: > Hi, > I have created a pseudo device usign mknod with major > number 255. Now when we use mknod we have to specify > the major number for the device. > However I want the system to dynamically allocate the > major number, so am using "register_chrdev". As I > understand register_chrdev, just registers the char > device & not create it. > > So how do I create the device so that the major number > is allocated dynamically ? > > Thanks, > SP > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Tom Bradley Software Engineer Jaycor / Titan Systems -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/