UINT32 LOS_QueueCreate ( CHAR pcQueueName,
UINT16  usLen,
UINT32 puwQueueID,
UINT32  uwFlags,
UINT16  usMaxMsgSize  
)

Create a message queue.

Description:
This API is used to create a message queue.
注意:
参数:
参数名称 描述
pcQueueName  [IN] Message queue name. Reserved parameter, not used for now.
usLen  [IN] Queue length. The value range is [1,0xffff].
puwQueueID  [OUT] ID of the queue control structure that is successfully created.
uwFlags  [IN] Queue mode. Reserved parameter, not used for now.
usMaxMsgSize  [IN] Node size. The value range is [1,0xffff-4].
返回值:
返回值 描述
LOS_OK  The message queue is successfully created.
LOS_ERRNO_QUEUE_CB_UNAVAILABLE  The upper limit of the number of created queues is exceeded.
LOS_ERRNO_QUEUE_CREATE_NO_MEMORY  Insufficient memory for queue creation.
LOS_ERRNO_QUEUE_CREAT_PTR_NULL  Null pointer, puwQueueID is NULL.
LOS_ERRNO_QUEUE_PARA_ISZERO  The queue length or message node size passed in during queue creation is 0.
LOS_ERRNO_QUEUE_SIZE_TOO_BIG  The parameter usMaxMsgSize is larger than 0xffff - 4.
Dependency:
  • los_queue.h: the header file that contains the API declaration.
参见:
LOS_QueueDelete
自从:
Huawei LiteOS V100R001C00