Motr  M0
msg_queue.h File Reference
#include "lib/types.h"
#include "lib/tlist.h"
#include "ha/msg.h"
Include dependency graph for msg_queue.h:

Go to the source code of this file.

Data Structures

struct  m0_ha_msg_qitem
 
struct  m0_ha_msg_queue_cfg
 
struct  m0_ha_msg_queue
 

Macros

#define __MOTR_HA_MSG_QUEUE_H__
 

Enumerations

enum  m0_ha_msg_qitem_delivery_state { M0_HA_MSG_QITEM_NOT_DELIVERED, M0_HA_MSG_QITEM_DELIVERED }
 

Functions

M0_INTERNAL void m0_ha_msg_queue_init (struct m0_ha_msg_queue *mq, struct m0_ha_msg_queue_cfg *cfg)
 
M0_INTERNAL void m0_ha_msg_queue_fini (struct m0_ha_msg_queue *mq)
 
M0_INTERNAL struct m0_ha_msg_qitemm0_ha_msg_queue_alloc (struct m0_ha_msg_queue *mq)
 
M0_INTERNAL void m0_ha_msg_queue_free (struct m0_ha_msg_queue *mq, struct m0_ha_msg_qitem *qitem)
 
M0_INTERNAL void m0_ha_msg_queue_enqueue (struct m0_ha_msg_queue *mq, struct m0_ha_msg_qitem *qitem)
 
M0_INTERNAL struct m0_ha_msg_qitemm0_ha_msg_queue_dequeue (struct m0_ha_msg_queue *mq)
 
M0_INTERNAL void m0_ha_msg_queue_push_front (struct m0_ha_msg_queue *mq, struct m0_ha_msg_qitem *qitem)
 
M0_INTERNAL bool m0_ha_msg_queue_is_empty (struct m0_ha_msg_queue *mq)
 
M0_INTERNAL struct m0_ha_msg_qitemm0_ha_msg_queue_find (struct m0_ha_msg_queue *mq, uint64_t tag)
 
M0_INTERNAL struct m0_ha_msg_qitemm0_ha_msg_queue_next (struct m0_ha_msg_queue *mq, const struct m0_ha_msg_qitem *cur)
 
M0_INTERNAL struct m0_ha_msg_qitemm0_ha_msg_queue_prev (struct m0_ha_msg_queue *mq, const struct m0_ha_msg_qitem *cur)
 

Macro Definition Documentation

◆ __MOTR_HA_MSG_QUEUE_H__

#define __MOTR_HA_MSG_QUEUE_H__

Definition at line 26 of file msg_queue.h.