Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does _NR stand for in system call number ?That is usually used as suffix

Can anyone tell me what does NR stand for? eg: #define _NR_exit

I've being looking everywhere but i could not find an answer.

like image 332
Santi1986 Avatar asked Nov 29 '11 05:11

Santi1986


People also ask

What is the system call number?

System call numbers Each and every system call has a system call number which is known by both the userspace and the kernel. For example, both know that system call number 10 is open() , system call number 11 is read() , etc.

What does NR stand for in Linux?

NR: NR command keeps a current count of the number of input records. Remember that records are usually lines. Awk command performs the pattern/action statements once for each record in a file. NF: NF command keeps a count of the number of fields within the current input record.

Where are Syscalls defined?

Actual code for system_call entry point can be found in /usr/src/linux/kernel/sys_call. S Actual code for many of the system calls can be found in /usr/src/linux/kernel/sys. c, and the rest are found elsewhere.

How many Syscalls are in Linux?

Many modern operating systems have hundreds of system calls. For example, Linux and OpenBSD each have over 300 different calls, NetBSD has close to 500, FreeBSD has over 500, Windows has close to 2000, divided between win32k (graphical) and ntdll (core) system calls while Plan 9 has 51.


1 Answers

THE FULL FORM OF _NR is Numeric Reference ..its a macro :)

like image 156
Santi1986 Avatar answered Sep 24 '22 00:09

Santi1986