Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_block_t Struct Reference

#include <interface.h>

Collaboration diagram for srn_block_t:
[legend]

Data Fields

struct srn_block_tnext
 when the block does not have space to allocate a request, we will allocate a new block and point to it here, a simple link list.
size_t size
 This is the TOTAL size of the block, header + payloud.
size_t offset
 Offset from the base.
uint8_t base []
 Where the data area starts.

Detailed Description

Definition at line 74 of file interface.h.

Field Documentation

◆ base

uint8_t srn_block_t::base[]

Where the data area starts.

Blocks carry no lock of their own; the owning chain's lock lives in srn_mm_t.chain_locks, outside the memory being freed on release.

Definition at line 89 of file interface.h.

◆ next

struct srn_block_t* srn_block_t::next

when the block does not have space to allocate a request, we will allocate a new block and point to it here, a simple link list.

Definition at line 77 of file interface.h.

◆ offset

size_t srn_block_t::offset

Offset from the base.

Definition at line 85 of file interface.h.

◆ size

size_t srn_block_t::size

This is the TOTAL size of the block, header + payloud.

Basically the same as srn_mm_t.block_size. We have a copy here just for a few cases that one might use a block outside of the memory manager.

Definition at line 82 of file interface.h.


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