Module pmem::ptr
[−]
[src]
The functions in this section provide optimized copying to persistent memory
The copy, copy_nonoverlapping, and write_bytes, provide the same memory copying as
memmove(3), memcpy(3), and memset(3), and ensure that the result has been flushed to persistence before returning.
Warning: Using these functions where
is_pmem(1)returns false may not do anything useful. Use the normal libc functions in that case.
Structs
| PmemConstPtr |
Direct |
| PmemConstVirtualPtr |
Persistent memory virtual pointer |
| PmemMutPtr |
Direct |
| PmemMutVirtualPtr |
Persistent memory virtual mutable pointer |
Functions
| copy |
Copies |
| copy_nonoverlapping |
Copies |
| msync | |
| null | |
| null_mut | |
| write |
Overwrites a memory location with the given value without reading or dropping the old value. |
| write_bytes |
Invokes memset on the specified pointer, setting |