Find the answer to your Linux question:
Results 1 to 2 of 2
hi i have a problem compiling kernel module my problem is calling external kernel symbol in internal kernel module(des.ko) 3 kernel module is * my_kernel_module.ko ---> my_function() is implemented in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    [question] Calling external kernel module in internal kernel


    hi i have a problem compiling kernel module
    my problem is calling external kernel symbol in internal kernel module(des.ko)

    3 kernel module is
    * my_kernel_module.ko
    ---> my_function() is implemented in my_kernel_module.ko
    * des.ko
    ---> It is crypto/des.ko module. and i modified it to call my_function()
    * des_test.ko
    ---> It call crypto_cipher_encrypt()

    calling sequence is
    des_test.ko ---> des.ko ---> my_kernel_module.ko

    when i compile kernle 2.6.20

    error message :
    root@ubuntu:~/linux-2.6.20.9# make modules
    WARNING: "my_function" [crypto/des.ko] undefined oops!
    make[1]: *** [__modpost] Error 1
    make: *** [modules] Error 2
    root@ubuntu:~/linux-2.6.20.9#

    any suggestion ?

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Try this Link, read "The Kernel Symbol Table - EXPORT_SYMBOL" section:


    Linux Device Drivers, 2nd Edition: Chapter 2: Building and Running Modules

    Gerard4143
    Make mine Arch Linux

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •