Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 1999 15:42:21 -0800 (PST)
From:      Matthew Jacob <mjacob@feral.com>
To:        Simon Shapiro <shimon@simon-shapiro.org>
Cc:        Randell Jesup <rjesup@wgate.com>, freebsd-arch@freebsd.org
Subject:   Re: I/O Evaluation Questions (Long but interesting!)
Message-ID:  <Pine.BSF.4.05.9911111538160.370-100000@semuta.feral.com>
In-Reply-To: <382B52F9.2C6D1E00@simon-shapiro.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9911111538160.370-100000>