From owner-freebsd-hackers Thu Nov 1 7:21: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 2527037B409 for ; Thu, 1 Nov 2001 07:21:02 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.0/8.11.0) with UUCP id fA1FJoQ95508; Thu, 1 Nov 2001 16:19:50 +0100 (CET) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id fA1FI0qb014891; Thu, 1 Nov 2001 16:18:01 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id fA1FI0F20147; Thu, 1 Nov 2001 16:18:00 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.4/8.11.4) id fA1FHmB08963; Thu, 1 Nov 2001 16:17:48 +0100 (CET) (envelope-from ticso) Date: Thu, 1 Nov 2001 16:17:48 +0100 From: Bernd Walter To: "Nicpon, John" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Unix Philosophers Please! Message-ID: <20011101161748.E7563@cicely8.cicely.de> References: <2AACFCDB6086274CA42D44085EF1BAA2293FF3@msm-001.msg.stcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2AACFCDB6086274CA42D44085EF1BAA2293FF3@msm-001.msg.stcorp.com> User-Agent: Mutt/1.3.23i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 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 On Wed, Oct 31, 2001 at 03:02:59PM -0600, Nicpon, John wrote: > Please specifically define where data goes that is sent to /dev/null That's what manpages are for - see null(4). If you want it more specific src/sys/dev/null.c says: [...] static int null_write(dev_t dev, struct uio *uio, int flag) { uio->uio_resid = 0; return 0; } [...] The memory which holds the data is declared as unused now and may be overwritten at any time. Even if the data still exists you will loose the reference to the holding memory on return of null_write(). In short: The data is tranfered into the kernel and dropped there. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message