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.
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.
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.
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.
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.
THE FULL FORM OF _NR is Numeric Reference ..its a macro :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With