From owner-freebsd-hackers Tue Feb 13 14: 6:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 7ED2637B503 for ; Tue, 13 Feb 2001 14:06:55 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f1DM6mn40550; Tue, 13 Feb 2001 14:06:48 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200102132206.f1DM6mn40550@iguana.aciri.org> Subject: Re: character device driver In-Reply-To: <200102132202.f1DM20W41714@harmony.village.org> from Warner Losh at "Feb 13, 2001 3: 2: 0 pm" To: imp@harmony.village.org (Warner Losh) Date: Tue, 13 Feb 2001 14:06:43 -0800 (PST) Cc: rizzo@aciri.org, daverufino@btinternet.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > : > No. You only get one close call and in the kernel all instances of a > : > minor device are treated identically. > : > : this is not true anymore, there is some special flag you can > : specify in cdevsw or so which passes all close calls to the driver. > > It is only half untrue. There's a special flag to get all calls to ok, i was only commenting on the flag to get all close calls to the driver (you still get to know the pid of the process issuing the close() but this is not always enough). cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message