lkml.org 
[lkml]   [2006]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Fwd: How to call a function in a module from the kernel code !!! (Linux kernel)
Date
On Thursday 09 February 2006 20:25, you wrote:
>
> hello sir,
>
> PROBLEM::How to call a function in a module from the
> kernel code ??
>
> what we did ? ::
> we wanted to call a function in our module ll from
> shm.c file (which is in the kernel)
>
> so we declared function pointer in shm.c
> :: unsigned long long (*ptr1)(int)
>
> we declared it as extern in shm.h
> :: extern unsigned long long (*ptr1)(int)
>
> then we declared also in our module (ll)
> :: extern unsigned long long (*ptr1)(int)
>
> we initialized it to ptr1 = commun; in init module
> of ll.c
> where commun is we wanted to call from the kernel
>
> but it gave an error as undefined refernce to ptr1
> when we inserted our module..
>
> can you help on this thing or can you give us a
> example
> regarding how it is done ??

EXPORT_SYMBOL(ptr1);

--
Greetings Michael.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-02-09 20:34    [W:0.444 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site