Skip to content

generate a machine-readable syscall descriptor file #623

@raulk

Description

@raulk

Two SDK teams (@ainhoa-a and @dtynn) have independently come up with the idea of creating a machine-readable JSON (or like) descriptor of FVM syscalls out of the FFI definitions (source of truth).

Assuming JSON, this would likely be some form of a top-level array, containing one entry per syscall. Every entry would contain:

  • name of the module
  • name of the function
  • whether it's privileged or not (see Privilege system for syscalls #468)
  • input parameters (array)
  • return value, if any (we don't support multi-value returns)
  • error numbers

An open question is whether to include documentation or not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions