dax_fill - fill a memory range with a value
cc [ flag... ] file... -ldax [ library...] #include <dax.h> dax_result_t dax_fill(dax_context_t *ctx, uint64_t flags, uint64_t val, void *dst, uint64_t count, unsigned val_width);
This function writes a value to dst, the number of times specified by count.
The low order val_width bytes of val gives the value. val_width can be 1, 2, 4, or 8 bytes. There is no alignment restriction on dst.
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(5) for descriptions of the following attributes:
|