Implement a System Call in Kernel 3.10.56 (X86_64)
2014-10-10 05:21
513 查看
Implementing a system call in Kernel 2.6.32 is somehow different from
the method in Kernel 3.10.56.
In kernel 2.6.32, we should register the system call number in the file
/arch/x86/include/asm/unistd_64.h and then add the corresponding function
prototype of system call in the file /include/linux/syscalls.h.
But in kernel 3.10.56, we just need modify one file /arch/x86/syscalls/syscall_64.tbl,
for example, we want to add a system call Print_Info in kernel 3.10.56, adding the entry
314 common Print_Info sys_Print_Info
at here, 314 represents the system call number, common means we can use this system
call under 32 bit architecture and 64 bit architecture. The last two items have the same
meaning as in kernel 2.6.32.
under the system call entry 313 is ok. Also you should implement this system call in the
appropriate souce file.
the method in Kernel 3.10.56.
In kernel 2.6.32, we should register the system call number in the file
/arch/x86/include/asm/unistd_64.h and then add the corresponding function
prototype of system call in the file /include/linux/syscalls.h.
But in kernel 3.10.56, we just need modify one file /arch/x86/syscalls/syscall_64.tbl,
for example, we want to add a system call Print_Info in kernel 3.10.56, adding the entry
314 common Print_Info sys_Print_Info
at here, 314 represents the system call number, common means we can use this system
call under 32 bit architecture and 64 bit architecture. The last two items have the same
meaning as in kernel 2.6.32.
under the system call entry 313 is ok. Also you should implement this system call in the
appropriate souce file.
相关文章推荐
- Android 中用内核模块实现系统调用(Implement system call by kernel module in Android)
- get system call table in x86-64 Linux
- get system call table in x86-64 Linux
- get system call table in x86-64 Linux
- get system call table in x86-64 Linux
- get system call table in x86-64 Linux
- add a system call in linux kernel
- Add a system call to the linux kernel in Ubuntu
- Add a system call on Ubuntu 13.04(x64) with x86_64
- Linux System Call Table for x86_64
- implement a system call in minix
- System call in Linux
- 转载Xcode7编译遇到linking in object file built for OSX, for architecture x86_64问题解决方案
- File System Redirector and Sysnative - how to call 64 bit program from 32 bit application
- kernel里initcall debug
- VMWare下安装ubuntu64位出现错误“kernel requires an x86_64 cpu, but only detected ”
- qemu-system-x86_64新建虚拟机,键盘输入乱码
- kernel/system_call.c
- Intel-x86-System-Programming-Guide, Part 1,Chapter 2.3 SYSTEM FLAGS AND FIELDS IN THE EFLAGS REGISTER