mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* kernel hook...
@ 2006-02-18 14:51 omkar lagu
  2006-02-18 16:55 ` Marc Koschewski
  0 siblings, 1 reply; 2+ messages in thread
From: omkar lagu @ 2006-02-18 14:51 UTC (permalink / raw)
  To: linux-kernel

hi all,

help needed.. 
we want to call a function from the kernel code which
is defined in our module and the function should be
only called when we insert our module in the kernel.
we are really struggling with this..can anyone suggest
a solution for this with a example.

thanks in advance 

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] 2+ messages in thread

* Re: kernel hook...
  2006-02-18 14:51 kernel hook omkar lagu
@ 2006-02-18 16:55 ` Marc Koschewski
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Koschewski @ 2006-02-18 16:55 UTC (permalink / raw)
  To: omkar lagu; +Cc: linux-kernel

* omkar lagu <omkarlagu@yahoo.com> [2006-02-18 06:51:52 -0800]:

> hi all,
> 
> help needed.. 
> we want to call a function from the kernel code which
> is defined in our module and the function should be
> only called when we insert our module in the kernel.
> we are really struggling with this..can anyone suggest
> a solution for this with a example.
> 
> thanks in advance 

static int __init init_my_module (void) {
	call_function();

	return 0;
}
EXPORT_SYMBOL(init_my_module);

Marc

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

end of thread, other threads:[~2006-02-18 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-18 14:51 kernel hook omkar lagu
2006-02-18 16:55 ` Marc Koschewski

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

Powered by JetHome