Skip to contentSkip to conversation

How to read/write from/to the HD with out kernel cashing

DISCUSSION Dipti Ranjan Tarai 3 participants 3 messages Nov 21, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,
I am using fedora core -3 with kernel 2.6.10. I want to
read/write a sector from/to the HD with out kernel caching. Basically my aim is to communicate directly with the ide drivers so that I can bypass the kernel cache. Please give some idea regarding this.

Regards
Dipti Ranjan Tarai

#1 lore raw
Quoted 3 lines · Dipti Ranjan Tarai

Hi all,
I am using fedora core -3 with kernel 2.6.10. I want to read/write
a sector from/to the HD with out kernel caching. Basically my aim is to communicate directly with the ide drivers so that I can bypass the kernel cache. Please give some idea regarding this.

man 2 open, then look for O_DIRECT.

Signature · 1 line
tejun
#2 lore raw
In reply to Dipti Ranjan Tarai
Quoted 6 lines · Dipti Ranjan Tarai

Hi all,
I am using fedora core -3 with kernel 2.6.10. I want to
read/write a sector from/to the HD with out kernel caching. Basically my aim is to communicate directly with the ide drivers so that I can bypass the kernel cache. Please give some idea regarding this.

Why wouldn't the (obsolete) RAW driver (CONFIG_RAW_DRIVER) or (better) O_DIRECT work for you??

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html