Go to main content

man pages section 3: DAX Library Functions

Exit Print View

Updated: Friday, August 13, 2021
 
 

dax_queue_create (3DAX)

Name

dax_queue_create - create a command queue

Synopsis

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

#include <dax.h>

dax_status_t
dax_queue_create(dax_context_t *ctx, int qlen, dax_queue_t **queue);

Description

This function creates a queue for use with the dax_xxxx_post() functions. Up to qlen requests can be posted to the queue without error and without calling the dax_poll() function. There is no explicit limit on qlen, other than the available memory. It returns the queue in the queue argument.

Return Values

DAX_SUCCESS

Operation completed successfully

DAX_ENOMEM

Memory resources are unavailable

DAX_EINVAL

qlen is 0 or negative

DAX_ETHREAD

The calling thread did not create ctx

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Committed

See Also

libdax(3LIB), dax_queue_destroy(3DAX), dax_post(3DAX)