asmlinkage in linux/include/linux/linkage.h

Christian Rund (cnrund@eiche.informatik.uni-stuttgart.de)
Thu, 24 Apr 1997 15:07:21 +0200


Hi all,

file /usr/src/linux/include/linux/linkage.h defines an
"asmlinkage" makro whose usage is not obvious for me.

There are two cases: 1. If _cplusplus is undefined, the thing
disappears.
2. Otherwise, it is replaced by "extern "C"
WITHOUT "{" (maybe because "}" had to be set
manually anyway).

Can somebody tell me the need for it in the _cplusplus case,
please ?

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.

Please excuse me, if I'm completely wrong about this, but then
I learned what it serves for.

Thank you in advance for your thoughts and answers

Christian

___________________________________________________________________________

_/_/ _/ _/ _/_/ Christian Rund
_/ _/ _/ _/ _/ _/ Universitaet Stuttgart
_/ _/_/_/ _/ _/
_/ _/ _/ _/_/ E-mail:
_/ _/ _/ _/ _/ _/ cnrund@trick.informatik.uni-stuttgart.de
_/_/ _/ _/ _/ _/ cnrund@minnie.informatik.uni-stuttgart.de
___________________________________________________________________________