55#define LOS_ERRNO_QUEUE_MAXNUM_ZERO LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x00)
66#define LOS_ERRNO_QUEUE_NO_MEMORY LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x01)
77#define LOS_ERRNO_QUEUE_CREATE_NO_MEMORY LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x02)
87#define LOS_ERRNO_QUEUE_SIZE_TOO_BIG LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x03)
97#define LOS_ERRNO_QUEUE_CB_UNAVAILABLE LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x04)
107#define LOS_ERRNO_QUEUE_NOT_FOUND LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x05)
117#define LOS_ERRNO_QUEUE_PEND_IN_LOCK LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x06)
127#define LOS_ERRNO_QUEUE_TIMEOUT LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x07)
137#define LOS_ERRNO_QUEUE_IN_TSKUSE LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x08)
148#define LOS_ERRNO_QUEUE_WRITE_IN_INTERRUPT LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x09)
158#define LOS_ERRNO_QUEUE_NOT_CREATE LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x0a)
168#define LOS_ERRNO_QUEUE_IN_TSKWRITE LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x0b)
178#define LOS_ERRNO_QUEUE_CREAT_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x0c)
188#define LOS_ERRNO_QUEUE_PARA_ISZERO LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x0d)
198#define LOS_ERRNO_QUEUE_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x0e)
208#define LOS_ERRNO_QUEUE_READ_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x0f)
218#define LOS_ERRNO_QUEUE_READSIZE_IS_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x10)
228#define LOS_ERRNO_QUEUE_WRITE_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x12)
238#define LOS_ERRNO_QUEUE_WRITESIZE_ISZERO LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x13)
248#define LOS_ERRNO_QUEUE_WRITE_SIZE_TOO_BIG LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x15)
258#define LOS_ERRNO_QUEUE_ISFULL LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x16)
268#define LOS_ERRNO_QUEUE_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x17)
279#define LOS_ERRNO_QUEUE_READ_IN_INTERRUPT LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x18)
289#define LOS_ERRNO_QUEUE_MAIL_HANDLE_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x19)
299#define LOS_ERRNO_QUEUE_MAIL_PTR_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x1a)
309#define LOS_ERRNO_QUEUE_MAIL_FREE_ERROR LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x1b)
320#define LOS_ERRNO_QUEUE_ISEMPTY LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x1d)
330#define LOS_ERRNO_QUEUE_READ_SIZE_TOO_SMALL LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x1f)
356#ifdef LOSCFG_QUEUE_STATIC_ALLOCATION
361#define LOS_QUEUEMEM_SIZE(msgSize, len) ((len) * ((msgSize) + sizeof(UINT32)))
394extern UINT32 LOS_QueueCreateStatic(
const CHAR *queueName,
403#ifdef LOSCFG_QUEUE_DYNAMIC_ALLOCATION
432extern UINT32 LOS_QueueCreate(
const CHAR *queueName,
UINT32 LOS_QueueWriteHeadCopy(UINT32 queueId, void *bufferAddr, UINT32 bufferSize, UINT32 timeout)
Write data into a queue header.
UINT32 LOS_QueueWriteHead(UINT32 queueId, void *bufferAddr, UINT32 bufferSize, UINT32 timeout)
Write data into a queue header.
UINT32 LOS_QueueReadCopy(UINT32 queueId, void *bufferAddr, UINT32 *bufferSize, UINT32 timeout)
Read a queue.
UINT32 LOS_QueueWrite(UINT32 queueId, void *bufferAddr, UINT32 bufferSize, UINT32 timeout)
Write data into a queue.
UINT32 LOS_QueueInfoGet(UINT32 queueId, QUEUE_INFO_S *queueInfo)
Obtain queue information.
UINT32 LOS_QueueDelete(UINT32 queueId)
Delete a queue.
UINT32 LOS_QueueWriteCopy(UINT32 queueId, void *bufferAddr, UINT32 bufferSize, UINT32 timeout)
Write data into a queue.
UINT32 LOS_QueueRead(UINT32 queueId, void *bufferAddr, UINT32 bufferSize, UINT32 timeout)
Read a queue.
struct tagQueueInfo QUEUE_INFO_S
unsigned short UINT16
Definition los_typedef.h:51
unsigned long long UINT64
Definition los_typedef.h:72
#define VOID
Definition los_typedef.h:88
unsigned int UINT32
Definition los_typedef.h:52
char CHAR
Definition los_typedef.h:58
Definition los_queue.h:336
UINT64 uwWaitReadTask
Definition los_queue.h:344
UINT16 usQueueTail
Definition los_queue.h:341
UINT64 uwWaitMemTask
Definition los_queue.h:351
UINT16 usWritableCnt
Definition los_queue.h:342
UINT16 usQueueHead
Definition los_queue.h:340
UINT16 usQueueSize
Definition los_queue.h:339
UINT64 uwWaitWriteTask
Definition los_queue.h:349
UINT32 uwQueueID
Definition los_queue.h:337
UINT16 usQueueLen
Definition los_queue.h:338
UINT16 usReadableCnt
Definition los_queue.h:343