Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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- make modules
    WARNING: "my_function" [crypto/des.ko] undefined oops!
    make[1]: *** [__modpost] Error 1
    make: *** [modules] Error 2

    any suggestion ?

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

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

    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