From owner-freebsd-hackers Tue Nov 5 6: 6:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D34F637B401 for ; Tue, 5 Nov 2002 06:06:24 -0800 (PST) Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA2AF43E42 for ; Tue, 5 Nov 2002 06:06:23 -0800 (PST) (envelope-from marks@ripe.net) Received: from laptop.6bone.nl (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.5/8.11.6) with SMTP id gA5E5na1011432; Tue, 5 Nov 2002 15:05:49 +0100 Received: (nullmailer pid 1480 invoked by uid 1000); Tue, 05 Nov 2002 14:05:43 -0000 Date: Tue, 5 Nov 2002 15:05:43 +0100 From: Mark Santcroos To: freebsd-hackers@FreeBSD.ORG Cc: Julian Elischer Subject: closing all fd's in ng_device before node removal Message-ID: <20021105140543.GA1114@laptop.6bone.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Handles: MS6-6BONE, MS18417-RIPE X-RIPE-Spam-Status: NONE ; -1006 X-RIPE-Spam-Level: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a kernel driver, is is possible to get the list of open fd's on a "dev_t" entry? I can probably do it using a double administration by storing all accesses to open() and close() but I would rather not. Any input appreciated! Mark -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message