Motr  M0
tx_credit.h File Reference
#include "lib/types.h"
Include dependency graph for tx_credit.h:

Go to the source code of this file.

Data Structures

struct  m0_be_tx_credit
 

Macros

#define __MOTR_BE_TX_CREDIT_H__
 
#define M0_DEBUG_BE_CREDITS   (1)
 
#define M0_BE_TX_CREDIT(nr, size)   (struct m0_be_tx_credit){ .tc_reg_nr = (nr), .tc_reg_size = (size) }
 
#define M0_BE_TX_CREDIT_TYPE(type)   M0_BE_TX_CREDIT(1, sizeof(type))
 
#define M0_BE_TX_CREDIT_PTR(ptr)   M0_BE_TX_CREDIT(1, sizeof *(ptr))
 
#define M0_BE_TX_CREDIT_BUF(buf)   M0_BE_TX_CREDIT(1, (buf)->b_nob)
 
#define BETXCR_F   "(%lu,%lu)"
 
#define BETXCR_P(c)
 

Enumerations

enum  m0_be_credit_users {
  M0_BE_CU_BTREE_INSERT, M0_BE_CU_BTREE_DELETE, M0_BE_CU_BTREE_UPDATE, M0_BE_CU_EMAP_SPLIT,
  M0_BE_CU_EMAP_PASTE, M0_BE_CU_NR
}
 

Functions

M0_INTERNAL void m0_be_tx_credit_add (struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_sub (struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_mul (struct m0_be_tx_credit *c, m0_bcount_t k)
 
M0_INTERNAL void m0_be_tx_credit_mul_bp (struct m0_be_tx_credit *c, unsigned bp)
 
M0_INTERNAL void m0_be_tx_credit_mac (struct m0_be_tx_credit *c, const struct m0_be_tx_credit *c1, m0_bcount_t k)
 
M0_INTERNAL void m0_be_tx_credit_max (struct m0_be_tx_credit *c, const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL void m0_be_tx_credit_add_max (struct m0_be_tx_credit *c, const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL bool m0_be_tx_credit_le (const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 
M0_INTERNAL bool m0_be_tx_credit_eq (const struct m0_be_tx_credit *c0, const struct m0_be_tx_credit *c1)
 

Variables

const struct m0_be_tx_credit m0_be_tx_credit_invalid
 

Macro Definition Documentation

◆ __MOTR_BE_TX_CREDIT_H__

#define __MOTR_BE_TX_CREDIT_H__

Definition at line 25 of file tx_credit.h.