[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kernel Module Programming: Calling/exporting Functions



Hi,

I have a module(test.c) which has function called driver_control().  I need
to call that from the different kernel programs(dev.c). How can I call these
module functions from the kernel programs?. I'm using 2.6 linux kernel. Any
help will be appreciated.


Ex: test.c
static int __init _init_module(void)
{
        printk( "<1>\nInstalling \'%s\' module\n", modname );
}

static void  __exit _exit_module(void){
        printk( "<1>Removing \'%s\' module\n", modname );
}
void driver_control(void){
        printk("<1> Calling FAST window control function \n");
}
EXPORT_SYMBOL_NOVERS(driver_control);



Thanks,
Sanjay Hegde




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/