1 #ifndef __WILC_MSG_QUEUE_H__
2 #define __WILC_MSG_QUEUE_H__
4 #include <linux/semaphore.h>
5 #include <linux/list.h>
10 struct list_head list;
13 struct message_queue {
18 struct list_head msg_list;
21 int wilc_mq_create(struct message_queue *mq);
22 int wilc_mq_send(struct message_queue *mq,
23 const void *send_buf, u32 send_buf_size);
24 int wilc_mq_recv(struct message_queue *mq,
25 void *recv_buf, u32 recv_buf_size, u32 *recv_len);
26 int wilc_mq_destroy(struct message_queue *mq);