a machine that has not booted; run boots it. Its memory starts at initialPages 64 KiB
pages
the error that stopped the machine, if one did
whether the kernel halted (reboot, poweroff)
Readonlymemorythe one memory the kernel and every process share
the streams of the snapshot this machine was restored from, parked as their owner left them
Readonlystatscounters, updated as the machine runs
the kernel clock, in nanoseconds; deadline is on it
whether the C scheduler core picks the tasks (else the TypeScript tables do)
the earliest Linux timer an idle task waits for, in kernel-clock nanoseconds, or null
changes whenever a stream gains something to read or its guest end closes, which a pump waiting on a stream can end its turn at
streams opened to the machine's listeners that are not finished with
whether a task is ready to run, which a machine with no timer to wait on can still have
turns every parked stack into bytes and returns the machine as data. The machine cannot run
afterwards; continue from Machine.restore(options, snapshot). memory is a view over this
machine's memory, not a copy, so a caller persists it before dropping the machine
opens a stream to the program listening on port: the kernel connects a socket to it and the
program accepts an ordinary connection. Throws when nothing listens there. borrows lets the
kernel lend its buffers to the reader (kernel patch 0041) on the terms of IngressStream.recycle
whether a program in the machine listens on port (kernel patch 0031)
raises the relay's interrupt for any stream that has room again; the site calls it between steps
Runs the machine until until says stop, or nothing can run and no timer is armed.
sleep(ms) is how the host waits for a timer; budget caps pump steps for one call.
keyboard input; raises the console interrupt, or waits for the driver's poll on an older kernel
Staticrestorerebuilds a machine from a snapshot in fresh instances and rewinds every stack into its park.
image, when given, writes the memory straight into the machine instead of snapshot.memory, so
a large machine never needs a second full copy of itself to restore
Optionalimage: { byteLength: number; write(into: Uint8Array): void }Optionallazy: {Staticresumecontinues a machine that has just checkpointed, in the memory it checkpointed from, which
options.memory must be: that memory already is the snapshot's image, so nothing is copied or
read back
A Linux machine on one host thread.
Every kernel task and every CPU is one vmlinux instance over one shared memory, as in linux-wasm. Blocking host imports are JSPI
Suspendingfunctions and every call into wasm that can block goes throughWebAssembly.promising, so a pump can run exactly one task at a time and switch by resolving the task the kernel names next.