text: what is asm linkage in linux kernel code?   asmlinkage tells the compiler to put call arguments on the stack instead of in registers (which is what kernel sys calls expect). this is done to disable optimizations done by some compilers that could mess things up.