Re: problem with semaphores

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

 



You seem to be using user space stuff for a kernel space module. They are very basic differences between a kernel module and a user space program. User space programs are stand alones which use libraries as you know them. eg pthreads, libc, libm etc etc and run as a seperate process. Kernel modules attach themselves dynamically to an already running kernel which has a fixed set of already linked symbols. Obviously pthread functions not being a part of it. You would want to read something basic like http://www.linuxdoc.org/LDP/lkmpg/mpg.html before jumping into the big bad world of kernel spaces...
:-)

On Thu, 2002-03-07 at 07:54, ext aaaaaa qqq wrote:
Dear Friends,

 I am using insmod and I am getting the following
errors when I am trying to insert a module.

unresolved symbols: semget
unresolved symbols: semop
unresolved symbols: pthread_mutex_init
unresolved symbols: pthread_mutex_lock
unresolved symbols: pthread_mutex_trylock
unresolved symbols: pthread_mutex_unlock

Can anyone help me in solving this.

regards,
Sudhakar.


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
--
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