Re: [PATCH] register_blkdev
[Posted March 11, 2003 by corbet]
| From: |
| Alan Cox <alan@lxorguk.ukuu.org.uk> |
| To: |
| Greg KH <greg@kroah.com> |
| Subject: |
| Re: [PATCH] register_blkdev |
| Date: |
| 08 Mar 2003 15:11:42 +0000 |
| Cc: |
| Andrew Morton <akpm@digeo.com>, hch@infradead.org,
Andries.Brouwer@cwi.nl,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@transmeta.com> |
On Sat, 2003-03-08 at 00:50, Greg KH wrote:
> > So we need a maxminors flag in the register for 2.6 I guess ?
>
> Do you mean to only increase the number of majors, and not minors then?
How about an interface that looks like
register_chr_device(blah. blah, MY_MAX_MINOR);
and we can delete all the if < 0 || >= MAX return logic from the drivers
as we go. Right now each driver checks and several in the past had off
by one errors.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
(
Log in to post comments)