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 SalzwedelHeinz 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/
This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:23 EST