Date: Thu, 1 Nov 2001 16:17:48 +0100 From: Bernd Walter <ticso@cicely8.cicely.de> To: "Nicpon, John" <John.Nicpon@SouthTrust.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Unix Philosophers Please! Message-ID: <20011101161748.E7563@cicely8.cicely.de> In-Reply-To: <2AACFCDB6086274CA42D44085EF1BAA2293FF3@msm-001.msg.stcorp.com> References: <2AACFCDB6086274CA42D44085EF1BAA2293FF3@msm-001.msg.stcorp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011101161748.E7563>