What is asmlinkage ?

Rahul Bedarkar rpal143 at gmail.com
Fri Jan 4 01:43:15 EST 2013


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 ?

Regards,
Rahul

On Thu, Jan 3, 2013 at 9:34 PM, Mulyadi Santosa
<mulyadi.santosa at gmail.com>wrote:

> On Thu, Jan 3, 2013 at 7:40 PM, Rahul Bedarkar <rpal143 at gmail.com> wrote:
> > Hi,
> >
> > I was searching for asmlinkage and found that it is already explained at
> > http://kernelnewbies.org/FAQ/asmlinkage
> >
> > But I didn't get this. Can someone tell me about it in brief ?
>
> the point is, parameters which is usually passed via stack, is passed
> using different way.
>
> A good example is system call.... they are passed using registers IIRC
>
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130104/82948516/attachment.html 


More information about the Kernelnewbies mailing list