proxygen
MemoryMapping.cpp File Reference
#include <folly/system/MemoryMapping.h>
#include <algorithm>
#include <functional>
#include <utility>
#include <folly/Format.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/SysMman.h>
#include <fcntl.h>
#include <sys/types.h>
#include <system_error>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Macros

#define MAP_POPULATE   0
 

Functions

 DEFINE_int64 (mlock_chunk_size, kDefaultMlockChunkSize,"Maximum bytes to mlock/munlock/munmap at once ""(will be rounded up to PAGESIZE). Ignored if negative.")
 
void folly::swap (MemoryMapping &a, MemoryMapping &b) noexcept
 
void folly::alignedForwardMemcpy (void *dst, const void *src, size_t size)
 
void folly::mmapFileCopy (const char *src, const char *dest, mode_t mode)
 

Variables

static constexpr ssize_t kDefaultMlockChunkSize
 

Macro Definition Documentation

#define MAP_POPULATE   0

Function Documentation

DEFINE_int64 ( mlock_chunk_size  ,
kDefaultMlockChunkSize  ,
"Maximum bytes to mlock/munlock/munmap at once ""(will be rounded up to PAGESIZE). Ignored if negative."   
)

Variable Documentation

constexpr ssize_t kDefaultMlockChunkSize
static
Initial value:
=
(1 << 20)

Definition at line 35 of file MemoryMapping.cpp.