在Linux内核3.3中添加新的系统调用 [英] Adding a new system call in Linux kernel 3.3
问题描述
我对这个内核东西很陌生.我要做的只是向内核添加一个新的系统调用.我正在遵循以下准则: http://hekimian-williams.com/?p=20 .
I am very new to this kernel thing. What I want to do is just add a new system call to the kernel. I was following this guideline: http://hekimian-williams.com/?p=20.
问题是存在于arch/x86/kernel下的syscall_table_32.S文件中,但是在内核版本3.3中找不到用于x86系统的文件.我仍然需要编辑文件并为新添加的系统调用追加一行吗?还是我需要做其他事情让内核知道我的新系统调用?任何帮助将不胜感激.谢谢.
The problem is there used to syscall_table_32.S file under arch/x86/kernel, but I cannot find the file for x86 systems in kernel version 3.3. Do I still need to edit the file and append one more line for the newly added system call? Or do I need to do something else to let the kernel know about my new system call? Any help will be appreciated. Thank you.
推荐答案
我认为在内核3.3中,它移到了这里
I think in kernel 3.3 its shifted here
http://lxr.free-electrons.com/source/arch /x86/syscalls/
这篇关于在Linux内核3.3中添加新的系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!