mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fwd: How to call a function in a module from the kernel code !!! (Linux kernel)
@ 2006-02-09 19:25 omkar lagu
  2006-02-09 19:32 ` Michael Buesch
  2006-02-09 23:07 ` Kyle Moffett
  0 siblings, 2 replies; 5+ messages in thread
From: omkar lagu @ 2006-02-09 19:25 UTC (permalink / raw)
  To: linux-kernel



 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 ??
 
 waiting for a reply 
 plz cc to omkarlagu@yahoo.com


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-10  8:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 19:25 Fwd: How to call a function in a module from the kernel code !!! (Linux kernel) omkar lagu
2006-02-09 19:32 ` Michael Buesch
2006-02-09 23:07 ` Kyle Moffett
2006-02-10  7:55   ` Steven Rostedt
2006-02-10  8:16     ` Kyle Moffett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®