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

From: Tejun Heo
Date: Tue Nov 21 2006 - 05:03:25 EST


Dipti Ranjan Tarai wrote:
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.

--
tejun
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/