lkml.org 
[lkml]   [2000]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectBuffer cache
Hi,

I have a question concerning the buffer cache. Suppose I read data from
a file into a local variable and change it. What happen whe I read it
again? Does linux read from the file or from the buffer cache?

example:
...
read(fd, buf, buf_size);
for (i = 0; i < buf_size; i += 512)
buf[i] &= 1;
...
read(fd, buf, buf_size); /* where does I read from? */
...

Regards Kay
--
--------------------------------------------------------------------
Kay A Salzwedel

Heinz Nixdorf Institute
University of Paderborn
Germany
------------------------------------------
E-Mail: kay@hni.uni-paderborn.de
Tel.: +49-5251-60 64 58
--------------------------------------------------------------------

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

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.032 / U:0.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site