From owner-freebsd-arch@FreeBSD.ORG Sun Sep 28 22:12:25 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E92B16A4B3; Sun, 28 Sep 2003 22:12:25 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B02F44015; Sun, 28 Sep 2003 22:12:23 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h8T5CKLG004323; Mon, 29 Sep 2003 07:12:21 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: "Greg 'groggy' Lehey" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 29 Sep 2003 08:30:08 +0930." <20030928230008.GF11520@wantadilla.lemis.com> Date: Mon, 29 Sep 2003 07:12:20 +0200 Message-ID: <4322.1064812340@critter.freebsd.dk> cc: arch@FreeBSD.org cc: current@FreeBSD.org Subject: Re: HEADSUP: Change of makedev() semantics. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2003 05:12:25 -0000 In message <20030928230008.GF11520@wantadilla.lemis.com>, "Greg 'groggy' Lehey" writes: > >--yRA+Bmk8aPhU85Qt >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline > >On Sunday, 28 September 2003 at 23:22:07 +0200, Poul-Henning Kamp wrote: >> Basically: >> >> 3. If you do a "normal" device driver, cache the result >> from when you call make_dev(). >> ... >> >> ./dev/vinum >> Failure to cache result of make_dev() ? > >Where should this be cached? Can you point to example code? Almost any other device driver. It is usually stored in the softc structure. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.