Motr  M0
m0_co_locals_allocator Struct Reference

#include <coroutine.h>

Collaboration diagram for m0_co_locals_allocator:
Collaboration graph

Data Fields

struct m0_co_la_item la_items [M0_MCC_STACK_NR]
 
uint64_t la_frame
 
void * la_pool
 
uint64_t la_total
 

Detailed Description

Simple stacked allocator used to save local to current coroutine context variables, defined inside each ‘yielded’ function with M0_CO_REENTER().

Definition at line 54 of file coroutine.h.

Field Documentation

◆ la_frame

uint64_t la_frame

next allocated frame to be used

Definition at line 59 of file coroutine.h.

◆ la_items

struct m0_co_la_item la_items[M0_MCC_STACK_NR]

allocated items

Definition at line 56 of file coroutine.h.

◆ la_pool

void* la_pool

This data is allocated with m0_alloc() to be far-far-away from user-space stack.

Definition at line 65 of file coroutine.h.

◆ la_total

uint64_t la_total

totally allocated

Definition at line 67 of file coroutine.h.


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