Re: Shared Memory

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

 



I don't export them no, because they are kernel functions (defined in
<linux/syscalls.h>)
They are showing up in the symbol table though:

[lnookx@bloopy module]# cat /proc/kallsyms | grep shmat
c04a1679 T do_shmat
c04a18f5 T sys_shmat
c04a7d0f t dummy_shm_shmat


On 1/22/07, Dinesh <dbhat@xxxxxxxxx> wrote:
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