alf_wb_enqueue

NAME

alf_wb_enqueue - Adds the work block to the work queue of the specified task handle.

SYNOPSIS

int alf_wb_enqueue(alf_wb_handle_t wb_handle)

Parameters  
wb_handle [IN] The handle of the work block to be put into the work queue.

DESCRIPTION

This function adds the work block to the work queue of the specified task handle. The caller can only update the contents of a work block before it is added to the work queue. After it is added to the work queue, you cannot access the wb_handle.

RETURN VALUE

0 Success.
less than 0 Errors occurred:
  • ALF_ERR_INVAL: Invalid input argument
  • ALF_ERR_BADF: Invalid task handle or work block handle
  • ALF_ERR_PERM: Operation not allowed in current context
  • ALF_ERR_BUSY: An internal resource is occupied
  • ALF_ERR_GENERIC: Generic internal errors
Related concepts
Data structures
Related reference
alf_wb_create
alf_wb_parm_add
alf_wb_dtl_begin
alf_wb_dtl_entry_add
alf_wb_dtl_end