On 03-08-08 17:44, Prasad Joshi wrote:
I am calling a function get_filesystem_list() from a module which I am writing. During the compilation I am getting the error
WARNING: get_filesystem_list [module name] undefined!
And the insertion of the module also fails giving error unresolved symbol.
I need the list of file systems registered on the system, get_filesystem_list() does the same.
I have included the file <linux/fs.h> as well. Why is it not working and how to make it work?
get_filesystem_list() is not exported for use by modules. Probably just because noone needs it...
For your own personal use, you can just export if from your kernel yourself. Add a
EXPORT_SYMBOL(get_filesystem_list);
directly after the closing brace of get_filesystem_list() (that location is just convention, technically anywhere would be fine) and recmpile the kernel. After reboot, get_filesystem_list() is available to modules.
Rene.