<p dir="ltr">Invoking a syscall won't necessarily print anything to the kernel log. </p>
<div class="gmail_quote">On 7 Jun 2014 07:50, "Dipanjan Das" <<a href="mailto:mail.dipanjan.das@gmail.com">mail.dipanjan.das@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div>I want to invoke getpid() system call using syscall. Here's the code snippet below. But, I can't find anything in dmesg|tail output.</div><div><br></div>
<div>#include <sys/types.h></div><div><br></div><div>int main()</div><div>{</div><div> pid_tret = syscall(20);</div><div> return 0;</div><div>}</div></div>
<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>