<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 6:44 PM, mohit verma <span dir="ltr">&lt;<a href="mailto:mohit89mlnc@gmail.com">mohit89mlnc@gmail.com</a>&gt;</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;">

ok  mulyadi ,<br>i got u late  what u  wanted to see . here are the diff files<br>sorry for delay.<div class="im"><br></div></blockquote><div><br>There is a good illustration of &quot;how to add syscalls to kernel&quot; y given in Robert Love&#39;s book LKD, refer it. <br>

when you attach files like these please follow a convention like naming them as mypatch.patch, mypatch.diff or even mypatch.txt. not all mail clients can read these files and may drop them. <br>Please DON&#39;T top post, its annoying.<br>

For coding standards please refer for coding style guide by Linus, its inside the Documentation directory inside the kernel source.<br>There are many utilities like <a href="http://patchcheck.pl">patchcheck.pl</a> and indent, which can make your code more readable. <br>

<br>-A<br>  <br></div><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"><br><div class="gmail_quote">On Wed, Feb 23, 2011 at 12:09 AM, Mulyadi Santosa <span dir="ltr">&lt;<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>&gt;</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>On Wed, Feb 23, 2011 at 01:19, mohit verma &lt;<a href="mailto:mohit89mlnc@gmail.com" target="_blank">mohit89mlnc@gmail.com</a>&gt; wrote:<br>



&gt; and i added:<br>
&gt; 1. #define __NR_hariohm 264<br>
&gt; __SYSCALL(__NR_hariohm, sys_hariohm) in unistd.h file.<br>
<br>
</div>grepping inside unistd.h, I got<br>
<br>
#undef __NR_syscalls<br>
#define __NR_syscalls 264<br>
<br>
So, it seems that you violate one rule: you add a syscall but didn&#39;t<br>
increase the  number of total syscalls registered.<br>
<br>
Am I right or am I right?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div>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></div>-- <br>........................<div><i>MOHIT VERMA</i></div><font color="#888888"><br>
</font><br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br>