Goog afternoon, I recently downloaded the http://www.kernel.org mainline 2.6.39 Linux kernel source distribution. We are looking for the Linux source code for void mmap(void start , size_t length, int prot, int flags, int fd, off_t offset). After we decompressed the tar.bz2 distribution, we found a file mmap.c which contains memory mapping source code.
However, we could not the Linux source code for void mmap(void start , size_t length, int prot, int flags, int fd, off_t offset) in mmap.c.
Do any Linux engineers or adminstrators knwo where we obtain the Linux source code for void mmap(void start , size_t length, int prot, int flags, int fd, off_t offset)?
Also, we are interested in the Windows source code for MapViewOfFile. I know this a stretch because Microsoft OS source code is not in the open source domain.
In case anybody is wondering why we need this source code, we are trying to optimize the runtime performant of a C++ deduplicating program prototype using a cached memory mapped file implementation on a 32-bit architecture. We want to understand how to use mmap and MapViewOfFile in order the optimize the runtime performant of our prototype? Thank you.
Goog afternoon, I recently downloaded the www.kernel.org mainline 2.6.39 Linux kernel source distribution. We
Share
For
MapViewOfFile, I’d check Winbase.h, but it might just be the declarations, else you’d have to turn to reverse engineering, which is considered illegal in most countries.I have found an extensive article here on MMAP and how it works. Maybe that helps.