[][src]Module rebpf::map_layout

This module contains a MapLayout definition. MapLayout allows to write and read values from bpf maps in a safe way.

Structs

PerCpuLayout

Memory layout matching per-CPU values, with its specificities. Notably, the kernel rounds up the size of an individual value to a multiple of 8, which means we cannot use a simple packed layout as in a Vec.

PerCpuValue

Individual value wrapper for the PerCpuLayout

ScalarLayout

The simplest data layout, a single, scalar value.

Traits

MapLayout

Generic marker trait for the various types of data layout expected by the BPF subsystem.

ReadPointer

Trait denoting a read access to an underlying memory storage organised according to a specific data layout.

WritePointer

Trait denoting a write access to an underlying memory storage organised according to a specific data layout.