Files
python-bpf/docs
Varun R Mallya 13538a4042 Core: Augmented assignment to a map-lookup local rebinds it, as v = v + 1 does
`v = m.lookup(k); v += 1` was rejected with "augmented assignment needs
an integer target, got i64*": the Name branch took the local's slot type,
the pointer, as the target type. `v = v + 1` already compiles, and to a
rebinding: the value is read through the pointer, null-checked, and the
local is pointed at its spare `v_tmp` slot holding the result; the map is
not written. `v += 1` now does the same. The read is get_typed_operand's,
so the operation takes the map's declared value type and sign (u64 >>= is
an lshr); the write is a rebind_map_value_local helper, now shared with
plain assignment so the two cannot drift apart. A struct-valued lookup
local is refused with a pointer to its fields.
2026-09-25 11:22:19 +05:30
..
2026-01-29 03:13:49 +05:30
2026-06-05 22:19:18 +05:30
2026-01-29 11:37:50 +05:30

PythonBPF Documentation

This directory contains the Sphinx documentation for PythonBPF.

Building the Documentation

Prerequisites

Install the documentation dependencies:

Using uv (recommended):

uv pip install -r requirements.txt
# Or install the optional docs dependencies
uv pip install pythonbpf[docs]

Using pip:

pip install -r requirements.txt
# Or install the optional docs dependencies
pip install pythonbpf[docs]

Build HTML Documentation

make html

The generated documentation will be in _build/html/. Open _build/html/index.html in a browser to view.

Other Build Formats

make latexpdf  # Build PDF documentation
make epub      # Build ePub format
make clean     # Clean build artifacts

Documentation Structure

  • index.md - Main landing page
  • getting-started/ - Installation and quick start guides
  • user-guide/ - Comprehensive user documentation
  • api/ - API reference documentation
  • conf.py - Sphinx configuration
  • _static/ - Static files (images, CSS, etc.)

Writing Documentation

Documentation is written in Markdown using MyST-Parser. See the existing files for examples.