<div dir="ltr">Thanks. So with asmlinkage we request compiler to put args on stack. What is advantage of this to start_kernel or in general to other functions ?<div><br></div><div>Regards,</div><div>Rahul<br><br><div class="gmail_quote">
On Thu, Jan 3, 2013 at 9:34 PM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, Jan 3, 2013 at 7:40 PM, Rahul Bedarkar <<a href="mailto:rpal143@gmail.com">rpal143@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I was searching for asmlinkage and found that it is already explained at<br>
> <a href="http://kernelnewbies.org/FAQ/asmlinkage" target="_blank">http://kernelnewbies.org/FAQ/asmlinkage</a><br>
><br>
> But I didn't get this. Can someone tell me about it in brief ?<br>
<br>
</div></div>the point is, parameters which is usually passed via stack, is passed<br>
using different way.<br>
<br>
A good example is system call.... they are passed using registers IIRC<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
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>
</font></span></blockquote></div><br></div></div>