From owner-freebsd-current Fri May 21 1:21:20 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 5FDBA14D61; Fri, 21 May 1999 01:21:16 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA67799; Fri, 21 May 1999 09:21:13 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Fri, 21 May 1999 09:21:12 +0100 (BST) From: Doug Rabson To: Nick Hibma Cc: Peter Wemm , Doug Rabson , FreeBSD current Mailing list Subject: Re: priorities In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 20 May 1999, Nick Hibma wrote: > > You set a 'low' priority for the ide match as -100. I suggest we use a > much lower value for that: -10000. With USB we have 15 levels already, > spaced ten apart (welcome back BASIC :) makes 150. > > Has anyone come up with a decent set of levels yet, or is the best bet > still Mike's example (can; > > > #define PRIORITY_STUB -10000 > #define PRIORITY_GENERIC -100 > #define PRIORITY_BEST 1 > #define PRIORITY_DEVICE 0 > #define PRIORITY_FAIL -1 > > It sounds like we can loads of haggling about the names there... The > last one is to take out the dependency on errno being greater than > zero. I would actually quite like to keep the possibility of returning an errno. It gives the possibility of returning an appropriate error if something strange happened (other than the hardware not being present). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message