Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 8 Mar 2003 08:55:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 8 Mar 2003 08:55:08 -0500 Received: from pc2-cwma1-4-cust86.swan.cable.ntl.com ([213.105.254.86]:52658 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Sat, 8 Mar 2003 08:55:07 -0500 Subject: Re: [PATCH] register_blkdev From: Alan Cox To: Greg KH Cc: Andrew Morton , hch@infradead.org, Andries.Brouwer@cwi.nl, Linux Kernel Mailing List , Linus Torvalds In-Reply-To: <20030308005018.GE23071@kroah.com> References: <20030307193644.A14196@infradead.org> <20030307123029.2bc91426.akpm@digeo.com> <20030307221217.GB21315@kroah.com> <20030307143319.2413d1df.akpm@digeo.com> <20030307234541.GG21315@kroah.com> <1047086062.24215.14.camel@irongate.swansea.linux.org.uk> <20030308005018.GE23071@kroah.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1047136302.25932.28.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 (1.2.1-4) Date: 08 Mar 2003 15:11:42 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 683 Lines: 19 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/