mulyadi ,<br>i followed the link <a href="https://sites.google.com/a/ce-jmi.edu.in/tarique/adding-a-system-call-to-linux-2">https://sites.google.com/a/ce-jmi.edu.in/tarique/adding-a-system-call-to-linux-2</a> .<br><br>modified files are:<br>
<br><span style="font-size: 10pt; font-family: Courier New;">1.
/usr/src/kernels/linux-2.6.37/arch/x86/kernel/syscall_table_32.S</span><span style="font-size: 10pt; font-family: Courier New;"></span>
<p><span style="font-size: 10pt; font-family: Courier New;">2.
/usr/src/kernels/linux-2.6.37/include/asm-frv/unistd.h <br></span></p>
<p><span style="font-size: 10pt; font-family: Courier New;">3.
/usr/src/kernels/linux-2.6.37/include/linux/syscalls.h <br></span></p>
<p><span style="font-size: 10pt; font-family: Courier New;">4. /usr/src/kernels/linux-2.6.37/Makefile</span></p>and i added:<br>1. #define __NR_hariohm 264<br>__SYSCALL(__NR_hariohm, sys_hariohm) in unistd.h file.<br><br>
2.asmlinkage int sys_hariohm(const char __user *filename); in file syscalls.h<br><br>3. .long sys_hariohm /* our system call */ in syscall_table_32.S<br><br>4 core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ <b>hariohm/</b> in makefile<br>
<br><br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 11:40 PM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, Feb 23, 2011 at 01:01, mohit verma <<a href="mailto:mohit89mlnc@gmail.com">mohit89mlnc@gmail.com</a>> wrote:<br>
> hi mulyadi,<br>
><br>
> i used syscall number 264 . and for the coding standard , can u tell me<br>
> where am i off the track ?<br>
<br>
</div>Exactly, how do you add "264" as the syscall number? the diff...I mean...<br>
<br>
NB: find lindent script for style reformatting...<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>........................<div><i>MOHIT VERMA</i></div><br>