User Tools

Site Tools


modifying_the_linux_kernel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
modifying_the_linux_kernel [2021/09/17 08:43]
misterjei [Adding a System Call]
modifying_the_linux_kernel [2021/09/17 11:36] (current)
misterjei [Adding a System Call]
Line 11: Line 11:
 Every system call must have an associated system call number which corresponds to its position in the system call table. This table is transformed / imported into the source as part of the build process. The correct table varies by architecture, but is in the following format/location in the source tree: Every system call must have an associated system call number which corresponds to its position in the system call table. This table is transformed / imported into the source as part of the build process. The correct table varies by architecture, but is in the following format/location in the source tree:
  
-''**//kernelsource//**/arch/**//<archname>//**/entry/syscalls/syscall_**//<variant>//**.tbl''+''**//<kernelsourcedir>//**/arch/**//<archname>//**/entry/syscalls/syscall_**//<variant>//**.tbl''
  
 For example, in the x64 version of Linux, **//<archname>//** is ''__**x86**__'' and **//<variant>//** is ''__**64**__''. For example, in the x64 version of Linux, **//<archname>//** is ''__**x86**__'' and **//<variant>//** is ''__**64**__''.
modifying_the_linux_kernel.txt ยท Last modified: 2021/09/17 11:36 by misterjei