(long fd, long len, long offset, int flags, int memoryTag)
| 374 | } |
| 375 | |
| 376 | public static long mmap(long fd, long len, long offset, int flags, int memoryTag) { |
| 377 | int osFd = fdCache.toOsFd(fd, (flags & MAP_RW) != 0); |
| 378 | long mmapCacheKey = fdCache.toMmapCacheKey(fd); |
| 379 | return mmapCache.cacheMmap(osFd, mmapCacheKey, len, offset, flags, memoryTag); |
| 380 | } |
| 381 | |
| 382 | /** |
| 383 | * Memory map without using the MmapCache. Useful for streaming reads where |