Thanks a lot Rene and Mark, I am in a phase of learning the Linux Device Drivers. I am trying to write a KDB module. This will add a new command in KDB to display the registered filesystem specific data. Hence I need a way to read all the registered filesystems.
Instead of exporting the function get_filesystem_list() and rebuilding the kernel. I used the other function which is exported get_fs_type(char *); ==> and in the first call to it I passed sysfs (which is the first filesystem registerd, atleast on my machine.) I got a pointer of type file_system_type and then onwards followed the linklist to get the list of other filesystems registerd. Regards, Prasad On Tue, Aug 5, 2008 at 7:28 AM, Mark Brown <[EMAIL PROTECTED]>wrote: > That is true [ I missed that tiny detail ;-) ] in either case you would > need create a custom kernel with the function exported with EXPORT_SYMBOL(). > > Why do you need to obtain a list of available filesystems from a driver? > Shouldn't you handle this in an application instead? > > Best Regards, > -- Mark > > > On Aug 3, 2008, at 10:04 PM, Rene Herman wrote: > > On 04-08-08 03:59, Prasad Joshi wrote: >> >> I am using 2.6.26 kernel. >>> Can you please explain, why you specifically mentioned the kernel 2.6.24 >>> or below? What is difference between 2.6.24 kernel and latest kernel in this >>> regards? >>> >> >> Only that the get_filesystem_list() prototype is not in <linux/fs.h> in >> 2.6.24 so that you need to declare it extern before using it yourself. The >> advice wasn't applicable though, given that you have the prototype in >> linux/fs.h. That EXPORT_SYMBOL() thing is the only thing relevant. >> >> Rene. >> >> -- >> To unsubscribe from this list: send an email with >> "unsubscribe kernelnewbies" to [EMAIL PROTECTED] >> Please read the FAQ at http://kernelnewbies.org/FAQ >> >> >
