lkml.org 
[lkml]   [1998]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: why asmlinkage is needed?
From
Date
In article <199808160521.AAA25968@duracef.shout.net>,
Michael Elizabeth Chastain <mec@shout.net> writes:
> Hi Andreas,
>> We don't compile the kernel with g++, so why is asmlinkage used
>> somewhere in the kernel function declaration?

> The asmlinkage is for the benefit of user-space C++ programs that
> include kernel headers.

Not really. System calls are called through the int 0x80 interface
with stubs in the libc, and the user program never sees the internal
kernel symbol table. Linux is not a DLL.

asmlinkage is just a historical remnant from the great deays when Linux
was writen in C++ (somewhere around 0.97 I think).

-andi



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.031 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site