Am Dienstag, 8. Juli 2003 23:39 schrieb Greg KH:
> On Tue, Jul 08, 2003 at 04:08:41PM -0400, Alan Stern wrote:
> > .txt.  But do you really need all these device 
> > numbers?  Consider using devfs, which does dynamic device number 
> > assignment.
> 
> It does?  Through what calls?

devfs_register():

    if ( ( S_ISCHR (mode) || S_ISBLK (mode) ) &&
         (flags & DEVFS_FL_AUTO_DEVNUM) )
    {
        if ( kdev_none ( devnum = devfs_alloc_devnum (devtype) ) )
        {
            PRINTK ("(%s): exhausted %s device numbers\n",
                    name, S_ISCHR (mode) ? "char" : "block");
            return NULL;
        }
        major = major (devnum);
        minor = minor (devnum);
    }

At least in 2.4. Recently a lot of changes were done to devfs
in 2.5.

        Regards
                Oliver



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to