Re: [PATCH] unified device list allocator

From: Matt Mackall
Date: Tue Mar 08 2005 - 01:43:06 EST

On Tue, Mar 08, 2005 at 06:31:27AM +0000, Christoph Hellwig wrote:
> 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.

Ok, I can work on a follow-up that does that.

Mathematics is the supreme nostalgia of our time.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at