Searched refs:msgq (Results 1 – 2 of 2) sorted by relevance
25 static struct msgqueue_entry *mqe_alloc(MsgQueue_t *msgq) in mqe_alloc() argument29 if ((mq = msgq->free) != NULL) in mqe_alloc()30 msgq->free = mq->next; in mqe_alloc()41 static void mqe_free(MsgQueue_t *msgq, struct msgqueue_entry *mq) in mqe_free() argument44 mq->next = msgq->free; in mqe_free()45 msgq->free = mq; in mqe_free()54 void msgqueue_initialise(MsgQueue_t *msgq) in msgqueue_initialise() argument58 msgq->qe = NULL; in msgqueue_initialise()59 msgq->free = &msgq->entries[0]; in msgqueue_initialise()62 msgq->entries[i].next = &msgq->entries[i + 1]; in msgqueue_initialise()[all …]
39 extern void msgqueue_initialise(MsgQueue_t *msgq);46 extern void msgqueue_free(MsgQueue_t *msgq);54 extern int msgqueue_msglength(MsgQueue_t *msgq);63 extern struct message *msgqueue_getmsg(MsgQueue_t *msgq, int msgno);73 extern int msgqueue_addmsg(MsgQueue_t *msgq, int length, ...);80 extern void msgqueue_flush(MsgQueue_t *msgq);