DOKK / manpages / debian 11 / libcxl-dev / cxl_work_alloc.3.en
CXL_WORK_ALLOC(3) CXL Programmer's Manual CXL_WORK_ALLOC(3)

cxl_work_alloc - allocate and initialize a work structure

#include <libcxl.h>

struct cxl_ioctl_start_work *cxl_work_alloc();

cxl_work_alloc() allocates, initializes, and returns a pointer to a work structure, that can be populated and passed to cxl_afu_attach_work().

On success, a pointer to the allocated structure is returned. On error, NULL is returned and errno is set appropriately.

Not enough memory.

cxl(3), cxl_afu_attach_work(3), cxl_work_disable_wait(3), cxl_work_enable_wait(3), cxl_work_free(3), cxl_work_get_amr(3), cxl_work_get_num_irqs(3), cxl_work_get_tid(3), cxl_work_get_wed(3), cxl_work_set_amr(3), cxl_work_set_num_irqs(3), cxl_work_set_wed(3)

2018-02-13 LIBCXL 1.5