Export functions in kernel module to user Programs

Discussion in 'Kernel Questions' started by er.tarun.9986, Oct 28, 2009.

  1. er.tarun.9986

    er.tarun.9986 New Member

    Hi all,

    I just started working on kernel modules. One query i'm not able to resolve how i can use call any of my function(take example testfunc() ) defined in my loadable kernel module (take example : test.ko)
    I want to export kernel module functions to user programs.

    Consider i have insmoded test.ko, now i'm writing any program on my linux machine and i want to use or call testfunc() in my program in userspace, and i don't want to call testfunc() at loading of test.ko (because there is way of calling it from init_module()), i want to call it from my program afterwards then how i should do this or is it possible or not?

    Please guide. Waiting for response.

    Thanks and Regards,
    Tarun
     

Share This Page