Re: [PATCH -mm] swsusp: userland interface

From: Greg KH
Date: Mon Jan 16 2006 - 13:29:11 EST


On Sun, Jan 15, 2006 at 11:43:00PM -0800, Andrew Morton wrote:
> "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
> > The patch assumes that the major and minor numbers of the snapshot device
> > will be 10 (ie. misc device) and 231, the registration of which has already been
> > requested.
>
> Why does it need a statically-allocated major and minor? misc_register()
> will generate a uevent and the device node should just appear...

Not everyone uses udev, so for things that are going to be in the kernel
tree, it's good to still register a major/minor number for them.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/