<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 12, 2016 at 9:55 PM, walkerlala <span dir="ltr">&lt;<a href="mailto:ablacktshirt@gmail.com" target="_blank">ablacktshirt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I successfully insert some function into the kernel code and make it<br>
execute when the kernel start up, but I just can&#39;t make the kernel stop<br>
executing. Are there any functions which can pause the kernel so that I<br>
prompt the user, and let the user input a command(maybe a comment to<br>
display the current time. Something like a shell would do) and interact ?<br>
(I had checked the &quot;sys_***&quot; functions in this page:<br>
     <a href="http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html" rel="noreferrer" target="_blank">http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html</a><br>
  but just can&#39;t find a proper one )<br>
<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" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div><div class="gmail_extra">Hi...<br><br></div><div class="gmail_extra">sounds like what kgdb does. But not sure if it is still maintained or not.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">btw, kernel can not be paused, actually. if you really need that, you need to run linux kernel inside virtual machine and pause the virtual machine. But doing that, you will also pause user space too :)<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">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></div>
</div></div>