From owner-freebsd-hackers Mon Sep 16 5:24:32 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 AA5E237B400 for ; Mon, 16 Sep 2002 05:24:30 -0700 (PDT) Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 163A643E72 for ; Mon, 16 Sep 2002 05:24:29 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 26805 invoked by uid 85); 16 Sep 2002 12:32:56 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by south.nanolink.com with SMTP; 16 Sep 2002 12:32:55 -0000 Received: (qmail 13296 invoked by uid 1000); 16 Sep 2002 12:23:14 -0000 Date: Mon, 16 Sep 2002 15:23:14 +0300 From: Peter Pentchev To: Varshavchick Alexander Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: /dev/null sources Message-ID: <20020916122314.GI360@straylight.oblivion.bg> Mail-Followup-To: Varshavchick Alexander , freebsd-hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DO5DiztRLs659m5i" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-Virus-Scanned: by Nik's Monitoring Daemon (AMaViS perl-11d ) 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 --DO5DiztRLs659m5i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 16, 2002 at 03:35:33PM +0400, Varshavchick Alexander wrote: > Hi all, >=20 > I'd wish to implement something like /dev/null or /dev/zero driver taking > the original source code as a base, but I can't find the sources > themselves, can you help? /dev/mem, /dev/null and /dev/zero are all handled by code in the sys///mem.c file. Note that for the i386 architecture there are several files: except the plain vanilla sys/i386/i386/mem.c, there are also i686_mem.c and k6_mem.c in the same directory. This is all under -STABLE; things may be a bit different in -CURRENT. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am the meaning of this sentence. --DO5DiztRLs659m5i Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9hc0x7Ri2jRYZRVMRAt/EAKCaTcYjaEcyuNiqdexyuGIR6QCQjwCggEoW x5l7/g1uxqSbCY11xnkrXEU= =LxCm -----END PGP SIGNATURE----- --DO5DiztRLs659m5i-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message