简体   繁体   English

linux内核2.6中有多少个系统调用?

[英]How many system calls are there in linux kernel 2.6?

How many system calls are there totally in linux 2.6 kernel. 在linux 2.6内核中完全有多少系统调用。 Does the number of system calls vary from version to version. 系统调用的数量是否因版本而异。

In the 3.0 (which is not different from 2.6 from that point of view), the file syscall_table.S contains 326 entries. 在3.0(从该观点来看与2.6没有区别)中,文件syscall_table.S包含326个条目。

It is located in arch/m32r/kernel/syscall_table.S . 它位于arch/m32r/kernel/syscall_table.S

It varies slightly between architectures. 它在架构之间略有不同。 Some architectures have syscalls which are either architecture-specific, or provide different sizes of parameters to the same routine. 某些体系结构具有系统调用,这些调用可以是特定于体系结构的,也可以为同一例程提供不同大小的参数。

Look at the system call table in the version and architecture you're interested in (Aif answered for the "m32r" architecture) 查看您感兴趣的版本和体系结构中的系统调用表(Aif为“m32r”架构回答)

The number varies from version, including minor versions, so there isn't a good hard number to answer to your question. 这个数字因版本而异,包括次要版本,所以没有一个好的硬编号可以回答你的问题。 Check this out: http://www.kernel.org/doc/man-pages/online/pages/man2/syscalls.2.html 看看这个: http//www.kernel.org/doc/man-pages/online/pages/man2/syscalls.2.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM