dax_copy - copy a memory range
cc [ flag... ] file... -ldax [ library...] #include <dax.h> dax_result_t dax_copy(dax_context_t *ctx, uint64_t flags, void *src, void *dst, size_t count);
This function copies the number of bytes specified in count from src to dst. There is no alignment restriction on src, dst, or count. The address ranges of the src and dst must not overlap.
Writes results to cache. If not specified, invalidates the address range for dst in the cache, and writes the result to the main memory. For more information, see the dax_scan_value(3DAX) man page.
If the DAX command queue is full, returns without submitting the command, instead of waiting to submit.
Returns 0 in the dax_result_t count field and sets the dax_result_t status field to one of the following values.
Operation completed successfully
Invalid argument, detected by libdax
ADI mismatch error for an input or output buffer
The calling thread did not create ctx
DAX is busy and nowait was requested
Unknown internal error. Caller must stop using ctx.
See attributes(7) for descriptions of the following attributes: