UINT32 LOS_QueueInfoGet ( UINT32  uwQueueID,
QUEUE_INFO_S pstQueueInfo  
)

Obtain queue information.

Description:
This API is used to obtain queue information.
注意:
  • The specific queue should be created firstly.
参数:
参数名称 描述
uwQueueID  [IN] Queue ID created by LOS_QueueCreate. The value range is [1,LOSCFG_BASE_IPC_QUEUE_LIMIT].
pstQueueInfo  [OUT] The queue information to be read must not be null.
返回值:
返回值 描述
LOS_OK  The queue information is successfully obtained.
LOS_ERRNO_QUEUE_PTR_NULL  The pointer to the queue information to be obtained is null.
LOS_ERRNO_QUEUE_INVALID  The handle of the queue that is being read is invalid.
LOS_ERRNO_QUEUE_NOT_CREATE  The queue in which the information to be obtained is stored is not created.
Dependency:
  • los_queue.h: the header file that contains the API declaration.
参见:
LOS_QueueCreate
自从:
Huawei LiteOS V100R001C00