Skip to contentSkip to conversation

kernel hook...

DISCUSSION omkar lagu 2 participants 2 messages Feb 18, 2006

lore
Share & tools
lore

omkar lagu

author
#0 lore raw

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 [email protected]

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

#1 lore raw
Quoted 10 lines · omkar lagu

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