Motr  M0
m0_be_allocator Struct Reference

Allocator. More...

#include <alloc.h>

Collaboration diagram for m0_be_allocator:
Collaboration graph

Data Fields

struct m0_be_segba_seg
 
struct m0_mutex ba_lock
 
struct m0_be_allocator_headerba_h [M0_BAP_NR]
 

Detailed Description

Allocator.

Definition at line 132 of file alloc.h.

Field Documentation

◆ ba_h

Internal allocator data. It is stored inside the segment.

Definition at line 145 of file alloc.h.

◆ ba_lock

struct m0_mutex ba_lock

Lock protects allocator lists and allocator chunks (but not allocated memory).

Definition at line 143 of file alloc.h.

◆ ba_seg

struct m0_be_seg* ba_seg

Memory is allocated from the segment using first-fit algorithm. Entire segment except m0_be_seg_hdr is used as a memory for allocations.

Definition at line 138 of file alloc.h.


The documentation for this struct was generated from the following file: