From owner-freebsd-net Mon Oct 16 18: 4:18 2000 Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 9480837B66E; Mon, 16 Oct 2000 18:04:12 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e9H149T28639; Mon, 16 Oct 2000 18:04:09 -0700 (PDT) Date: Mon, 16 Oct 2000 18:04:09 -0700 From: Alfred Perlstein To: Terry Lambert Cc: "Gary T. Corcoran" , freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: Module parameters? (WildWire DSL card driver) Message-ID: <20001016180409.C272@fw.wintelcom.net> References: <39E7AB10.EADBB53B@lucent.com> <200010170053.RAA04059@usr05.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200010170053.RAA04059@usr05.primenet.com>; from tlambert@primenet.com on Tue, Oct 17, 2000 at 12:53:15AM +0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Terry Lambert [001016 17:55] wrote: > > Alternately, if the problem is lack of reference counting on > FreeBSD's part, and you therefore can't do the job on the > open, since you can't track closes aws they happen, only the > last clse, there are a couple of approaches: FreeBSD has had that capability for over a year now. /* * Flags for d_flags. */ #define D_MEMDISK 0x10000 /* memory type disk */ #define D_NAGGED 0x20000 /* nagged about missing make_dev() */ #define D_CANFREE 0x40000 /* can free blocks */ #define D_TRACKCLOSE 0x80000 /* track all closes */ (from sys/conf.h) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message