Loading...
Searching...
No Matches
pktbuf_static.h File Reference

Internal definitions of the static implementation of Packet buffer. More...

Detailed Description

Internal definitions of the static implementation of Packet buffer.

Definitions of types and their alignment for usage in tests

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file pktbuf_static.h.

#include <sys/types.h>
+ Include dependency graph for pktbuf_static.h:

Go to the source code of this file.

Data Structures

struct  _unused
 Marks an unused section of the packet buffer arena array. More...
 
#define GNRC_PKTBUF_STATIC_ALIGN_MASK   (sizeof(_unused_t) - 1)
 Mask to align packet buffer allocations with size of _unused_t.
 
typedef struct _unused _unused_t
 Marks an unused section of the packet buffer arena array.
 
static size_t _align (size_t size)
 Calculates the required space of a number of bytes including alignment to the size of _unused_t.
 

Macro Definition Documentation

◆ GNRC_PKTBUF_STATIC_ALIGN_MASK

#define GNRC_PKTBUF_STATIC_ALIGN_MASK   (sizeof(_unused_t) - 1)

Mask to align packet buffer allocations with size of _unused_t.

Definition at line 33 of file pktbuf_static.h.

Function Documentation

◆ _align()

static size_t _align ( size_t  size)
inlinestatic

Calculates the required space of a number of bytes including alignment to the size of _unused_t.

Definition at line 47 of file pktbuf_static.h.