insmod: unresolved symbol sys_shmat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm trying to write a module which uses semaphores and shared memory.
I include
#include  <linux/ipc.h>
#include  <linux/shm.h>
#include  <linux/sem.h>
to my file
and try to make use of the functions sys_shmget, sys_shmat, ... defined in
shm.h and sem.h

I compile the module with
gcc -c -D__KERNEL__ test.c

But, with
insmod test.o

I get "unresolved symbol" errors:
insmod timer.o
Using timer.o
insmod: unresolved symbol sys_shmctl
insmod: unresolved symbol sys_shmat
insmod: unresolved symbol sys_semop
insmod: unresolved symbol sys_shmdt
insmod: unresolved symbol sys_semctl
insmod: unresolved symbol sys_shmget
insmod: unresolved symbol sys_semget

What did I wrong?
Regards,
Juergen

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse für Mail, Message, More! +++

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux