Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many system calls are there in linux kernel 2.6?

How many system calls are there totally in linux 2.6 kernel. Does the number of system calls vary from version to version.

like image 887
Talespin_Kit Avatar asked Jun 23 '11 13:06

Talespin_Kit


3 Answers

In the 3.0 (which is not different from 2.6 from that point of view), the file syscall_table.S contains 326 entries.

It is located in arch/m32r/kernel/syscall_table.S.

like image 77
Aif Avatar answered Sep 22 '22 07:09

Aif


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)

like image 26
MarkR Avatar answered Sep 19 '22 07:09

MarkR


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

like image 23
jncraton Avatar answered Sep 22 '22 07:09

jncraton