Compile external module against linux source and use functionality in linux source

Arjun Pandey apandepublic at gmail.com
Thu Sep 25 02:41:49 EDT 2014


No i am just compiling the external module and using this
functionality in existing linux source code. I am not adding any
additional modules within the tree which use this function.

In my case i am trying to use the function directly in udp_rcv
function of net/ipv4/udp.c

Regards
Arjun

On Thu, Sep 25, 2014 at 12:06 PM, Paul Bolle <pebolle at tiscali.nl> wrote:
> On Thu, 2014-09-25 at 10:49 +0530, Arjun Pandey wrote:
>> However now when i try to compile the kernel i get linker error of
>> undefined reference to the function exported from the kernel module.
>
> I'm guessing you're compiling that module as, well, a module (ie,
> CONFIG_EXAMPLE=m). What happens when you make it built-in
> (CONFIG_EXAMPLE=y)?
>
>
> Paul Bolle
>



More information about the Kernelnewbies mailing list