From owner-freebsd-hackers Tue Sep 17 2:10:43 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 6DA7537B401 for ; Tue, 17 Sep 2002 02:10:42 -0700 (PDT) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F25243E3B for ; Tue, 17 Sep 2002 02:10:41 -0700 (PDT) (envelope-from mark@grimreaper.grondar.org) Received: from storm.FreeBSD.org.uk (uucp@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.5/8.12.5) with ESMTP id g8H9AeeJ090505; Tue, 17 Sep 2002 10:10:40 +0100 (BST) (envelope-from mark@grimreaper.grondar.org) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.12.5/8.12.5/Submit) with UUCP id g8H9Ae9q090504; Tue, 17 Sep 2002 10:10:40 +0100 (BST) Received: from grimreaper.grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.5) with ESMTP id g8H95C7s078588; Tue, 17 Sep 2002 10:05:12 +0100 (BST) (envelope-from mark@grimreaper.grondar.org) Message-Id: <200209170905.g8H95C7s078588@grimreaper.grondar.org> To: Varshavchick Alexander Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: /dev/null sources References: In-Reply-To: ; from Varshavchick Alexander "Mon, 16 Sep 2002 15:35:33 +0400." Date: Tue, 17 Sep 2002 10:05:12 +0100 From: Mark Murray 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 > 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? On STABLE (4.x and below) it is in src/sys/i386/i386/mem.c and it is a bit messy. (Look for "Rathole") On Current (5.0+) it is in src/sys/dev/null/ and is much cleaner. :-) M -- o Mark Murray \_ O.\_ Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message