Module pmem::nodrain [] [src]

The functions in this section provide optimized copying to persistent memory without draining

The copy, copy_nooverlapping, and write_bytes are similar to the ones on the persistent module, except they skip the final pmem::drain() step. This allows applications to optimize cases where several ranges are being copied to persistent memory, followed by a single call to pmem::drain().

Warning: Using the functions in this module on a destination where pmem::is_pmem() returns false may not do anything useful.

Functions

copy

Copies count * size_of<T> bytes from src to pmemdest. The source and destination may overlap.

copy_nooverlapping

Copies count * size_of<T> bytes from src to pmemdest. The source and destination may not overlap.

write_bytes

Invokes memset on the specified pointer, setting count * size_of::<T>() bytes of memory starting at pmemdest to val.