From owner-freebsd-hackers Sun Mar 26 21:41:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from Draculina.otdel-1.org (Draculina.Otdel-1.ORG [195.230.65.30]) by hub.freebsd.org (Postfix) with ESMTP id 7097F37B8FF for ; Sun, 26 Mar 2000 21:41:15 -0800 (PST) (envelope-from nms@otdel-1.org) Received: by Draculina.otdel-1.org (Postfix, from userid 1002) id 1AF2BF9; Mon, 27 Mar 2000 09:41:14 +0400 (MSD) Date: Mon, 27 Mar 2000 09:41:13 +0400 From: Nikolai Saoukh To: Warner Losh Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reserving Resources Message-ID: <20000327094113.A18747@Draculina.otdel-1.org> References: <20000327092452.B18459@Draculina.otdel-1.org> <20000327091626.A18459@Draculina.otdel-1.org> <200003261249.VAA05285@tasogare.imasy.or.jp> <200003260112.SAA76635@harmony.village.org> <200003261249.VAA05285@tasogare.imasy.or.jp> <200003262340.QAA87438@harmony.village.org> <20000327091626.A18459@Draculina.otdel-1.org> <200003270518.WAA89979@harmony.village.org> <20000327092452.B18459@Draculina.otdel-1.org> <200003270530.WAA90072@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200003270530.WAA90072@harmony.village.org>; from imp@village.org on Sun, Mar 26, 2000 at 10:30:48PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 26, 2000 at 10:30:48PM -0700, Warner Losh wrote: > In message <20000327092452.B18459@Draculina.otdel-1.org> Nikolai Saoukh writes: > : Current 'unknown' driver attaches with 0 priority, thus kldloaded > : driver is not called at all. And even when 'unknown' driver attaches > : with very low priority, what happens when real driver will be > : kldunloaded? > > Hmmm. The unknown driver should attach with a negative priority. > What should happen? The drivers that have a negative priority should > detach, or at least drivers with a very low priority (set a threshold > of -1000 or something) detached before a probe... I know that this > was talked about at one point, but come to think about it, I don't > recall it being committed. I was wrong. 'unknown' driver attaches with (-100) priority. I have another problem -- when 'unknown' driver attached to my device, my kldloaded driver is not called at all, so I can't override 'unknown' with higher priority. So for a while I just made #if 0 ... #endif for 'unknown'. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message