How to read/write from/to the HD with out kernel cashing
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
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
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