Skip to main content

Module syscalls

Module syscalls 

Source
Expand description

DSL-side syscall helpers — record canonical NodeProtos into a Graph. The runtime-side dispatch impls live in bb-ops; the two sides agree on stable (domain, op_type) string constants re-exported from bb_ir::syscall_ids.

Modules§

ids
Canonical (domain, op_type) string constants the DSL helpers stamp onto recorded NodeProtos. The strings live in bb_ir::syscall_ids so the DSL + compiler + runtime cite one declaration; this module re-exports them under shorter local aliases for the helper bodies below.

Functions§

address_book_insert_many
Record an AddressBook::InsertMany(peer, addresses) custom-op NodeProto into a Graph. New peer creates an entry with ref_count = 1; known peer dedupe-appends every address without touching ref_count. Empty addresses vec surfaces as a dispatch-time OpError.
address_book_lookup
Record an AddressBook::Lookup(peer) custom-op NodeProto into a Graph. Output carries the full ordered TYPE_ADDRESS_VEC; callers that need a single address pick one downstream. Unknown or empty-address peer surfaces as a dispatch-time OpError.
gate_dispatch
Record a GateDispatch syscall NodeProto into a Graph - a multi-edge synchronization barrier.
pass_through
Record a PassThrough syscall NodeProto into a Graph.