|
#define | __MOTR_BE_ALLOC_H__ |
|
#define | M0_BE_ALLOC_ARR(arr, nr, seg, tx, op) |
|
#define | M0_BE_ALLOC_PTR(ptr, seg, tx, op) M0_BE_ALLOC_ARR((ptr), 1, (seg), (tx), (op)) |
|
#define | M0_BE_ALLOC_ARR_SYNC(arr, nr, seg, tx) |
|
#define | M0_BE_ALLOC_PTR_SYNC(ptr, seg, tx) M0_BE_OP_SYNC(__op, M0_BE_ALLOC_PTR((ptr), (seg), (tx), &__op)) |
|
#define | M0_BE_FREE_PTR(ptr, seg, tx, op) m0_be_free(m0_be_seg_allocator(seg), (tx), (op), (ptr)) |
|
#define | M0_BE_FREE_PTR_SYNC(ptr, seg, tx) M0_BE_OP_SYNC(__op, M0_BE_FREE_PTR((ptr), (seg), (tx), &__op)) |
|
#define | M0_BE_ALLOC_BUF(buf, seg, tx, op) |
|
#define | M0_BE_ALLOC_BUF_SYNC(buf, seg, tx) M0_BE_OP_SYNC(__op, M0_BE_ALLOC_BUF((buf), (seg), (tx), &__op)) |
|
#define | M0_BE_ALLOC_CREDIT_PTR(ptr, seg, accum) |
|
#define | M0_BE_FREE_CREDIT_PTR(ptr, seg, accum) |
|
#define | M0_BE_ALLOC_CREDIT_ARR(arr, nr, seg, accum) |
|
#define | M0_BE_FREE_CREDIT_ARR(arr, nr, seg, accum) |
|
#define | M0_BE_ALLOC_CREDIT_BUF(buf, seg, accum) |
|
|
struct m0_be_allocator_call_stat | M0_XCA_DOMAIN (be) |
|
uint32_t bzs_type | M0_XCA_FENUM (m0_be_alloc_zone_type) |
|
M0_INTERNAL int | m0_be_allocator_init (struct m0_be_allocator *a, struct m0_be_seg *seg) |
|
M0_INTERNAL void | m0_be_allocator_fini (struct m0_be_allocator *a) |
|
M0_INTERNAL bool | m0_be_allocator__invariant (struct m0_be_allocator *a) |
|
M0_INTERNAL int | m0_be_allocator_create (struct m0_be_allocator *a, struct m0_be_tx *tx, uint32_t *zone_percent, uint32_t zones_nr) |
|
M0_INTERNAL void | m0_be_allocator_destroy (struct m0_be_allocator *a, struct m0_be_tx *tx) |
|
M0_INTERNAL void | m0_be_allocator_credit (struct m0_be_allocator *a, enum m0_be_allocator_op optype, m0_bcount_t size, unsigned shift, struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_be_alloc_aligned (struct m0_be_allocator *a, struct m0_be_tx *tx, struct m0_be_op *op, void **ptr, m0_bcount_t size, unsigned shift, uint64_t zonemask) |
|
M0_INTERNAL void | m0_be_alloc (struct m0_be_allocator *a, struct m0_be_tx *tx, struct m0_be_op *op, void **ptr, m0_bcount_t size) |
|
M0_INTERNAL void | m0_be_free_aligned (struct m0_be_allocator *a, struct m0_be_tx *tx, struct m0_be_op *op, void *ptr) |
|
M0_INTERNAL void | m0_be_free (struct m0_be_allocator *a, struct m0_be_tx *tx, struct m0_be_op *op, void *ptr) |
|
M0_INTERNAL void | m0_be_alloc_stats (struct m0_be_allocator *a, struct m0_be_allocator_stats *out) |
|
M0_INTERNAL void | m0_be_alloc_stats_credit (struct m0_be_allocator *a, struct m0_be_tx_credit *accum) |
|
M0_INTERNAL void | m0_be_alloc_stats_capture (struct m0_be_allocator *a, struct m0_be_tx *tx) |
|