Go to main content

man pages section 3: DAX Library Functions

Exit Print View

Updated: Friday, August 13, 2021
 
 

dax_int_create (3DAX)

Name

dax_int_create - initialize a comparison value

Synopsis

cc [ flag... ] file... -ldax [ library...]

#include <dax.h>

dax_status_t
dax_int_create(dax_context_t *ctx, void *buf, size_t len,
    dax_int_t *val);

Description

This function copies len bytes from buf to val and initializes val with the DAX_BYTES format and elem_width of len. Interprets the bytes in buf in big endian order. len may be 1 to 16 bytes. There is no alignment restriction on buf.

Return Values

DAX_SUCCESS

Operation completed successfully

DAX_EINVAL

Invalid argument, detected by libdax

DAX_ETHREAD

The calling thread did not create ctx

Usage

This function is available as a convenience. Programmers are free to construct dax_int_t structures directly.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Committed

See Also

dax_scan_value(3DAX), dax_scan_range(3DAX), libdax(3LIB)