add a system call in 2.6.36 kernel
im facing this problem..
i want to add a new system call..im following this guide .http://tldp.org/HOWTO/html_single/Im...inux-2.6-i386/ in this step 6 he said add __NR_mycall to some number, in unistd.h... My problem here is.. 1) in include/asm/unistd.h there are are around 1079 calls for different hardwares. and the __NR_SYSCALLS is also defined many places... I dont know where to add my new system call.... and another qn is .. whether the number for syscall in unistd.h and arch/x86/syscall_32.s both should be same?or they can be different...please help me out here... Thanks in advance |
Hi,
I moved your thread to Linux - Kerne for better exposure in order to get responses that will aid. :hattip: |
Hi,
I think the guide you have mentioned above is written for the earlier linux kernel version. In linux-2.6.32 there is no such file but there is a file name include/asm-generic/ for implementing the system call you have to make change in arch/x86/include/asm/unistd_32.h if you are using i386 processor. For further help you can see on the following links- http://www.pubbs.net/201001/kernel/2...stem-call.html http://http://pradeepkumar.org/2010/...on-2-6-32.html Edit: Please don't post duplicates that differ only in the links you provide -- use the "Edit" feature if that was an accident. Merged your posts. |
All times are GMT -5. The time now is 04:58 AM. |