Module risc0_zkvm_platform::syscall

source ·

Modules§

Structs§

  • Returned registers (a0, a1) from a syscall invocation.
  • A UTF-8 NUL-terminated name of a syscall with static lifetime.

Constants§

Functions§

  • sys_alloc_alignedexport-syscalls
    Safety
  • sys_alloc_wordsDeprecated
  • Retrieves the count of arguments provided to program execution.
  • Retrieves the argument with arg_index, and stores as much of it as it can it in the memory at [out_words, out_words + out_nwords).
  • Safety
  • sys_execute_zkrunstable and export-syscalls
    Executes a `ZKR’ in the recursion circuit, specified by control ID. The control ID must be registered in the host’s index of ZKRs.
  • sys_exitexport-syscalls
    sys_exit() causes normal process termination.
  • sys_forkexport-syscalls
    sys_fork() creates a new process by duplicating the calling process. The new process is referred to as the child process. The calling process is referred to as the parent process.
  • Retrieves the value of an environment variable, and stores as much of it as it can it in the memory at [out_words, out_words + out_nwords).
  • Safety
  • Safety
  • Safety
  • Safety
  • sys_pipeexport-syscalls
    sys_pipe() creates a pipe, a unidirectional data channel that can be used for interprocess communication. The pointer pipefd is used to return two file descriptors referring to the ends of the pipe. pipefd[0] refers to the read end of the pipe. pipefd[1] refers to the write end of the pipe. Data written to the write end of the pipe is buffered by the host until it is read from the read end of the pipe.
  • Safety
  • Reads the given number of bytes into the given buffer, posix-style. Returns the number of bytes actually read. On end of file, returns 0.
  • Reads up to the given number of words into the buffer [recv_buf, recv_buf + nwords). Returns the number of bytes actually read. sys_read_words is a more efficient interface than sys_read, but varies from POSIX semantics. Notably:
  • Safety
  • Safety
  • sys_verify_integrityexport-syscalls
    Send a ReceiptClaim digest to the host to request verification.
  • Safety
  • Invoke a raw system call
  • Invoke a raw system call
  • Invoke a raw system call
  • Invoke a raw system call
  • Invoke a raw system call
  • Invoke a raw system call