Re: Shared Memory

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

 



Did you make sure you are exporting the symbols properly in the code?

Dinesh

lee nookx wrote:
Hi all,

I am trying to write a kernel module that shares some data with a
userland process using shared memory.

The kernel module compiles with some warnings:

WARNING: "sys_shmat"
[/home/lnookx/shared_memory_tests/module/shmem_server_module.ko]
undefined!
WARNING: "sys_shmget"
[/home/lnookx/shared_memory_tests/module/shmem_server_module.ko]
undefined!

and when I try to load the kernel module I get:

insmod: error inserting './shmem_server_module.ko': -1 Unknown symbol in module

and in dmesg I see:

shmem_server_module: Unknown symbol sys_shmat
shmem_server_module: Unknown symbol sys_shmget


Has anyone else seen these errors, and knows how to correct them?



Thanks,


lee

--

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




--
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