From owner-freebsd-arch Thu Nov 11 15:42:30 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id E15B914F4D for ; Thu, 11 Nov 1999 15:42:27 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id AAA02867 for ; Fri, 12 Nov 1999 00:42:26 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id AAA14404 for freebsd-arch@freebsd.org; Fri, 12 Nov 1999 00:42:26 +0100 (MET) Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 057A814F61 for ; Thu, 11 Nov 1999 15:42:18 -0800 (PST) (envelope-from mjacob@feral.com) Received: from semuta.feral.com (semuta [192.67.166.70]) by feral.com (8.8.7/8.8.7) with ESMTP id PAA23715; Thu, 11 Nov 1999 15:42:21 -0800 Date: Thu, 11 Nov 1999 15:42:21 -0800 (PST) From: Matthew Jacob Reply-To: mjacob@feral.com To: Simon Shapiro Cc: Randell Jesup , freebsd-arch@freebsd.org Subject: Re: I/O Evaluation Questions (Long but interesting!) In-Reply-To: <382B52F9.2C6D1E00@simon-shapiro.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > AKAIK, you really have to be an NT kernel hacker to get raw i/o. > No. It's easily available from userland because all of the NT drivers still install DOS compatibility names when they configure themselves: // open the 'D:' drive HANDLE fh = CreateFile(("\\\\.\\PHYSICALDRIVE3", 0, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, NULL); if (fh == INVALID_HANDLE_VALUE) { return (-1); } .... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message