一位开发者在Hacker News上展示了其更新的Linux系统调用(syscall)查询网站及API 1。该项目通过解析Linux内核源代码,提供了涵盖x64、arm64等27种架构的系统调用表 1。数据来源直接读取自Linux内核源代码中的syscall table和SYSCALL_DEFINE宏 1。具体而言,x64架构支持369个系统调用,arm64架构为326个,riscv64架构为327个 1。
该网站支持查看不同内核版本间的调用增删历史,并提供JSON数据下载和RESTful API接口 1。API端点格式为https://api.syscall.sh/v2/syscalls/{arch}/{syscall} 1。每个架构的完整历史数据以纯JSON文件形式提供,路径格式为 / /syscalls.json 1。此外,描述信息主要源自Linux man pages项目和liburing库 1。
A developer has announced updates to their Linux system call website and accompanying API, showcasing the project on Hacker News 1. The updated platform now supports 27 CPU architectures, including x64 with 369 syscalls, arm64 with 326 syscalls, and riscv64 with 327 syscalls 1.
The data provided by the service is sourced directly from the Linux kernel source code, specifically parsing syscall tables and SYSCALL_DEFINE macros 1. Descriptive information for the calls is primarily derived from the Linux man pages project and the liburing library 1. Users can access complete historical data for each architecture in pure JSON format via paths structured as / /syscalls.json, or query individual entries through the RESTful API endpoint at https://api.syscall.sh/v2/syscalls/{arch}/{syscall} 1.
评论
还没有评论,欢迎留下第一条。