modus
Menu

The module probe

A module of commands that tests the sandbox of an isolated call (property 19). Each export does what a module must not be able to do to its caller: read any address, take all the processor time, use a handle that it did not receive. The console calls it with isolate("probe"). Do not load it directly: then it runs with the memory and the handles of the console.

FactValue
Sourcemodules/probe
Boot imagein the boot image; the image is not built, so its size is not known
Importsnone
Imported bynone

Exports

ExportWhat it does
peek(address: Integer) -> Integerreads 8 bytes at an address
count() -> Integergives the number of calls of count
spin() -> Integernever returns
stop_machine(handle: Integer) -> Integerasks the kernel to stop the machine with a handle
checksum(text: Text) -> Integeradds the bytes of a text
shout(text: Text) -> Textgives a text in capital letters
lie(count: Integer) -> Textwrites no text, and gives a false count of bytes
log_long(count: Integer) -> Integerwrites one text of count bytes on the log (at most 2000): digits, then the words "the end of the long text"

Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).