>   i will store  a function pointer of a function d
>    here i faced probem that i am not able to access function pointer
>     in linux appl.
>  its giving compiler error...
>  that functionname(), ....
> 
> whether doing this way is correct or not ???

Not. Kernel is different adress space, and your user program is not linked
with it.

Use indexes (like 1,2,3,4,5,6...) instead of pointers.

You can set up in the kernel array of function pointers:

int (*(functions[NNN]))() = { func1, func2, func3, ... };

functions[i]();  <- call this way.

--
Tomek

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to