Skip to contentSkip to conversation

What is asmlinkage ?

DISCUSSION Alain Birtz 2 participants 2 messages Jun 11, 2000 – Jun 12, 2000

lore
Share & tools
lore
#0 lore raw

In /linux/shm.h there are many "asmlinkage" declaration like

asmlinkage int sys_shmat();

The source code for it is /linux/ipc/shm.c (and object file is /linux/ipc/shm.o)
I wish to use sys_shmat() in a module: how can I do this ?

Thank you.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · Alain Birtz

In /linux/shm.h there are many "asmlinkage" declaration like

asmlinkage int sys_shmat();

asmlinkage is #define'd in /usr/include/linux/linkage.h

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/