Hi All,

I am new into the OpenSolaris kernel programming

The project I am working on requires me to
1. Write a driver that exports few symbols (functions), using
EXPORT_SYMBOL().
2. Then I have to modify the ZFS code and access these symbols from the zfs
code.

I did both the parts, and recompiled the ZFS code and copied the ZFS modules
in the correct directory.

But, the problem I am facing is after the machine is rebooted it won't find
the symbol which was exported by a driver module (which is not loaded during
bootup). So, ZFS will not attach.

The solution which I got is
1. find some interface in the kernel which will tell me whether the symbol
is available for eg
get_symbol("<symbol name>");

this interface will resolve the symbol and give me the pointer to the
function.

for eg. This is what I want to do
if((ptr=get_symbol("printf_hello"))!=NULL)
    ptr("hello world");


Is there any such interface already present?
Is there any other alternative to solve this problem?

Thanks and Regards,
Prasad.
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to