Re: disable buffer cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 25, 2004 at 16:22:14 +0000, hai huang wrote:
> Hi,
> 
> I'm trying to read "/dev/hda1" sector by sector.  This is done by using 
> open() on /dev/hda1, and then read 512 bytes at a time.  However, I would 
> like to avoid the effect of read-ahead and buffer cache.  Can this be done?

That's what O_DIRECT flag is for.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux