![]() | |||||||||||||
Messages in this thread |
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 [from the cache] ©2003-2008 | |||||||||||||