From owner-cvs-all Mon Aug 16 19:15:25 1999 Delivered-To: cvs-all@freebsd.org Received: from shell.webmaster.com (mail.webmaster.com [209.133.28.73]) by hub.freebsd.org (Postfix) with ESMTP id 3983214D1F for ; Mon, 16 Aug 1999 19:15:19 -0700 (PDT) (envelope-from davids@webmaster.com) Received: from whenever ([209.133.29.2]) by shell.webmaster.com (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with SMTP id com; Mon, 16 Aug 1999 19:13:23 -0700 From: "David Schwartz" To: "Brian Somers" , "Poul-Henning Kamp" Cc: "Dag-Erling Smorgrav" , Subject: RE: cvs commit: src/sys/miscfs/specfs spec_vnops.c src/sys/sys conf.h Date: Mon, 16 Aug 1999 19:13:23 -0700 Message-ID: <000001bee856$15352af0$021d85d1@youwant.to> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 In-reply-to: <199908161313.OAA77853@keep.lan.Awfulhak.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > Thinking about things more.... maybe the driver just has to figure > out the global descriptor table offset involved and use that to > figure out what device structure is required. I'm sure I'm missing something here, but can't you make things like /dev/vty a sort of 'magic symlink' that acts as if it were a symlink to the 'next' device? That way, every open would give a new device, and fork/dup/close would work right automatically. This may cut across layers of abstraction currently, but perhaps a new interface is necessary to allow drivers to hook into the symlink logic. Doesn't /proc/curproc do the same thing? Of course, it's easy to put a magic symlink in a magic directory. DS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message