From owner-cvs-all Mon Aug 21 0:27:12 2000 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.32.208]) by hub.freebsd.org (Postfix) with ESMTP id DAF9537B42C; Mon, 21 Aug 2000 00:27:06 -0700 (PDT) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id JAA91480; Mon, 21 Aug 2000 09:27:02 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Warner Losh Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf files src/sys/dev/bktr bktr_os.c src/sys/dev/md md.c src/sys/fs/devfs devfs.h devfs_devs.c devfs_vfsops.c devfs_vnops.c src/sys/i386/conf GENERIC src/sys/i4b/driver i4b_ctl.c i4b_rbch.c i4b_tel.c i4b_trace.c ... In-Reply-To: Your message of "Sun, 20 Aug 2000 20:14:36 MDT." <200008210214.UAA35416@harmony.village.org> Date: Mon, 21 Aug 2000 09:27:02 +0200 Message-ID: <91478.966842822@critter> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200008210214.UAA35416@harmony.village.org>, Warner Losh writes: >In message <200008202134.OAA42108@freefall.freebsd.org> Poul-Henning Kamp writes: >: Add devfs cloning to: >: disk minilayer (ie: ad(4), sd(4), cd(4) etc etc) > >Why bother with sd? Shouldn't that be da? > >: md(4), tun(4), bpf(4), fd(4) >... >: Add commented out DEVFS to GENERIC > >Question: Is this DEVFS interrupt context safe? The old DEVFS didn't >deal well with devices arriving in an interrupt context, which CAM >does. This one is interrupt context safe. The assignment of the devfs inode number is a cheap atomic instruction which is the only thing done in interrupt context. The rest of the action happens in the context of the process accesing devs. This also means that if you have N devfs's which are rarely accessed the effort to keep their state up to date is optimized away -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message