Question about the linux switch_to macro parameters

武广阔 wuguangkuo at
Thu Apr 22 02:33:13 EDT 2021

I read the source code in kernel(kernel/sched.c):

My question is that: switch_to is defined as a macro, so I thoutht it will expand "=a" (last) as "=a" (prev), if that the last parameter is just for easy to read, is that right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Kernelnewbies mailing list