On Wed, 2006-04-26 10:59:09 +0200, Jochen Kunz <jkunz at unixag-kl.fh-kl.de> wrote:
On Tue, 25 Apr 2006 20:15:51 -0400
Brad Parker <brad at heeltoe.com> wrote:
To my
amazement, I discovered
that linux does not have a raw disk I/O capability by default.
I'm not sure how
you came to that conclusion,
The Linux /dev/hda device is a _block_ device. Data
read from / written
to that device goes through the buffer cache. Such devices are not
considered "raw". There is no corresponding _character_ device
/dev/rhda, that bypasses the buffer cache. These unbuffered character
devices are the "raw" devices.
...which were obsoleted some time ago. If you want unbuffered access,
just add O_DIRECT to the flags at open() time.
MfG, JBG
--
Jan-Benedict Glaw jbglaw at lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
f?r einen Freien Staat voll Freier B?rger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));