Module program

Module program 

Source
Expand description

Program loading and execution APIs. This module contains the core logic for eBPF program execution. A lot of unsafe code is used - be careful when making changes here.

Structs§

DummyProgramEventListener
No-op event listener implementation.
GlobalEnv
Global runtime environment for signal handlers.
HelperScope
Context passed to helpers while a program is executing.
InvokeScope
Per-invocation storage for helper state during a program run.
MutableUserMemory
A validated mutable view into user memory.
PreemptionEnabled
Program
A program pinned to a specific thread and ready to execute.
ProgramLoader
Prepares helper tables and loads eBPF programs.
ThreadEnv
Per-thread runtime environment for preemption handling.
TimesliceConfig
Time limits used to yield or throttle execution.
UnboundProgram
A loaded program that is not yet pinned to a thread.

Traits§

ProgramEventListener
Hooks for observing program execution events.
Timeslicer
Async runtime integration for yielding and sleeping.

Type Aliases§

AsyncTaskOutput
The callback produced by a helper async task when it resumes.
PendingAsyncTask
A pending async task spawned by a helper.