Re: [PATCH] unified device list allocator

From: Christoph Hellwig
Date: Tue Mar 08 2005 - 01:39:16 EST


On Mon, Mar 07, 2005 at 10:11:55PM -0800, Matt Mackall wrote:
> > - when called with the major argument as 0 it returns an unused major number
> > from the top of the old 255 entries major list. This should be replaced
> > by a real dynamic dev_t allocator, similar to alloc_chrdev_region.
>
> Umm, this replaces alloc_chrdev_region too. If instead you mean "let's
> migrate all the users to a sensible interface", I agree. And that
> means killing alloc_chrdev_region too. (baseminor makes no sense for
> dynamic allocation - you either know your prefered major and minor or
> you know neither.)

The thing is this blkdev_register useage should be replace by an API
like alloc_chrdev_region. I don't particularly care about the actual
implementation.

-
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/