Skip to contentSkip to conversation

system calls

DISCUSSION Rodrigo Ramos 3 participants 4 messages Jan 29, 2005 – Jan 31, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I would like to know how many groups of system calls are there at Linux 2.4 and 2.6? Where can I find these informations in the Kernel?

Best Regards,
Rodrigo Ramos
www.triforsec.com.br

#1 lore raw
Quoted 2 lines · Rodrigo Ramos

I would like to know how many groups of system calls are there at Linux 2.4 and 2.6? Where can I find these informations in the Kernel?

I don't know what you mean by groups (a nonempty set G with binary operation * s.t. G is associativity, there exists e in G s.t. e*a=a*e=a, and there exists i in G s.t. i*b=b*i=e?).

System calls are implemented per-architecture. You can see the list at the bottom of arch/i386/kernel/entry.S. There is about 290.

System calls are prefixed by "sys_". Thus, read(2) is implemented in the kernel as sys_read(). It, for example, can be found in fs/read_write.c.

Hope this helps.

Robert Love

#2 lore raw
Quoted 2 lines · Robert Love

System calls are prefixed by "sys_". Thus, read(2) is implemented in the kernel as sys_read().

Now that you say this - of course you know that the actual situation is much more messy. Sometimes I wonder whether it would be useful to make such a statement more true and for example change sys_olduname, sys_uname, sys_newuname into sys_oldolduname, sys_olduname, sys_uname.

Andries

#3 lore raw
In reply to Robert Love

Hi Robert,

Thank you very much for your help. It really helped me. When a say groups a mean classes like File Structure, Process Related and etc. But I already got what I needed... Once again Thank you very much.

Best Regards,
Rodrigo Ramos
http://www.triforsec.com.br

Quoted 23 lines · Robert Love
Quoted 2 lines · Rodrigo Ramos

I would like to know how many groups of system calls are there at Linux 2.4 and 2.6? Where can I find these informations in the Kernel?

I don't know what you mean by groups (a nonempty set G with binary operation * s.t. G is associativity, there exists e in G s.t. e*a=a*e=a, and there exists i in G s.t. i*b=b*i=e?).

System calls are implemented per-architecture. You can see the list at the bottom of arch/i386/kernel/entry.S. There is about 290.

System calls are prefixed by "sys_". Thus, read(2) is implemented in the kernel as sys_read(). It, for example, can be found in fs/read_write.c.

Hope this helps.

Robert Love