Re: asmlinkage in linux/include/linux/linkage.h

Alan Cox (
Thu, 24 Apr 1997 19:19:45 +0100 (BST)

> Would it be better to protect extern "C" { ... }, if needed,
> by #ifdefs in the right place ? There would be a lot such
> #ifdef .. #endif makros, true, but then extern "C" would in
> my opinion be correct, after all.

That would look a lot messier

asmlinkage is used to mark routines called from the .S (assembler) files
so they dont get mashed by C++ name mangling