Home / Blog / Hardware
Hardware สรุปและวิเคราะห์จากข่าวต้นทาง

Analyze and review: Update the website and API for Linux System Calls

Explore websites that compile Linux system call tables for 27 architectures, including numbers, argument registers, change history, and APIs for querying information.

syscall.sh: A Linux system call table covering 27 architectures

syscall.sh brings system call numbers, arguments, registers, and instructions together in one place. It covers Linux from 3.3 through 7.3, with a history showing which kernel release each syscall was added or removed in.

For deeper searches, there are architecture-specific JSON files and an API for retrieving data, such as curl https://api.syscall.sh/v2/syscalls/x64/read. It also includes guides for making syscalls on x64, arm64, and riscv64, along with tools for Emacs.

See all the tools in one place

syscall.sh brings Linux system call tables for all 27 architectures together in one place. Each entry includes the NR number, arguments from ARG0 through ARG5, registers, the instruction, and the result in RETURN. It is useful for reviewing differences between architectures without opening multiple sources.

The data is also available as plain JSON files at /<arch>/syscalls.json and can be accessed through the API, such as curl https://api.syscall.sh/v2/syscalls/x64/read, making it convenient to search further or connect with your own tools.

Problems when reviewing syscalls across architectures

When comparing syscalls across architectures, developers need to check the number, arguments, registers, and instruction because the details may differ. Opening separate tables makes these differences difficult to track, especially when there are 27 architectures.

This website reduces the number of steps by searching across all architectures at once. Press / to jump to the search field, then enter a syscall name once to immediately start comparing the relevant information.

Where syscall.sh fits in the Linux toolset

syscall.sh serves as a central reference for Linux syscall tables from Linux 3.3 through 7.3. It covers 27 architectures, with the NR number, arguments from ARG0 through ARG5, registers, instructions, and results in RETURN.

In addition to the website, each architecture’s data is available in JSON format, with an API for retrieving syscalls, kernel releases, and differences between releases. The accompanying documentation also teaches users how to create custom syscalls on x64, arm64, and riscv64. Emacs users can access the data directly through syscall.el.

From the original website to the updated version

Available sources confirm that the current website combines syscall tables for 27 architectures, from Linux 3.3 through 7.3, making it suitable for comparing cross-platform details in one place. However, they do not specify what the original website contained, so specific changes cannot be summarized.

Factor Updated websiteOriginal usage requirements
Data coverage 27 architecturesNot specified by the source
Search Search all architectures at onceNot specified by the source
Syscall history Shows when syscalls were added and removedNot specified by the source

Practical use, from searching for syscalls to calling the API

When comparing syscalls across architectures, you can search from a single page, then review the number in NR, arguments from ARG0 through ARG5, as well as the relevant registers and instruction.

To use the data elsewhere, open each architecture’s JSON file at /<arch>/syscalls.json, such as /x64/syscalls.json. For focused queries, call curl https://api.syscall.sh/v2/syscalls/x64/read to view the read syscall, and use the compare page to view two architectures side by side.

Compared with other alternatives, its strength is data consolidation

syscall.sh combines Linux syscall tables in one place, covering 27 architectures with numbers, arguments, registers, and instructions. This makes it suitable for work that requires comparing multiple architectures.

Factor Focused data sourcessyscall.sh
Architectures May be viewed piecemeal27 architectures
Syscall history Not specifiedIncludes periods when syscalls were added and removed
Architecture comparison Not specifiedCompare two architectures

Strengths and limitations based on the available information

Its main strength is bringing syscall tables for 27 architectures together in one place, with numbers, arguments, registers, and instructions. It also provides release histories, JSON files, an API, guides for x64, arm64, and riscv64, and syscall.el for Emacs.

Pros

  • +Combines syscall data from multiple architectures in one place
  • +Provides an API, JSON, and tools for comparing data

Cons

  • −The source does not provide pricing information
  • −No performance data or in-depth usage experience

The effort required beyond opening the website

The hidden cost of this website is the time required to understand the syscalls for each architecture, especially when you need to review NR, ARG0 through ARG5, the instruction, and RETURN in full.

To use the data elsewhere, you need to read the guides and gain a better understanding of the JSON or API formats. The source states that syscalls are available for 27 architectures, but does not provide pricing or actual costs. Therefore, the main burden falls on the user’s time and understanding.

Conclusion: Use it as a map before going down to the kernel level

The website’s main strength is bringing syscall tables for multiple architectures, along with the history of syscalls added and removed from Linux 3.3 through 7.3, together in one place. This makes it possible to systematically check differences between versions or architectures.

Start with the table to get an overview, then use the API when you need to retrieve data for further work. After that, read the guides to understand how to create syscalls on x64, arm64, and riscv64 in practice.