[from lat_mmap.c]
where = mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
#endif
if ((int)where == -1) {
perror("mmap");
exit(1);
}
if (random) {
end = where + size;
for (p = where; p < end; p += STRIDE) {
*p = c;
}
} else {
end = where + (size / N);
for (p = where; p < end; p += PSIZE) {
*p = c;
}
}
munmap(where, size);
}
certainly seems to be touching the mmaped object.
ganesh
-
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/