Re: Fwd: help needed with EXPORT_SYMBOL

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aijaz Baig
Date: Wednesday, August 25, 2010 - 2:27 am

Hi everyone

I am trying to understand if its possible to add functions dynamically
to the kernel source based on the presence of certain modules in the
running kernel image.

I did try what brian suggested with the function pointer and yeah it
does work. But I could not understand what peter was trying to say about
modular users since I suppose he mentioned one module (B in this case)
using a function pointer defined in (or by) module A. In my case, since
it is the kernel that is gonna use the function, I need to make sure
that the module doesn't get unloaded while we are using the function.

By the way Jan I couldnt find bridge.c although there is an object file
called bridge.o within /net/bridge. Nonetheless, I did check
nf_nat_ftp.c as an example to see if something similar is being done
there too. What I did find out is that nf_nat_ftp_hook is rcu assigned
in nf_nat_ftp.c however this function pointer is being used with
nf_contrack_ftp.c (im talkin 2.6.27.45 here). In this case, it still is
module1 <- module2 and not kernel <- module. Could you please elaborate
a little how it affects the latter case. Or perhaps u were commenting on
the former case since peter brought that to our notice.

thanks again for your replies and keen to hear your input
Regards,
Aijaz Baig 



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
help needed with EXPORT_SYMBOL, Aijaz Baig, (Fri Aug 20, 11:57 pm)
Re: help needed with EXPORT_SYMBOL, Jan Engelhardt, (Sat Aug 21, 2:23 am)
Re: help needed with EXPORT_SYMBOL, Aijaz Baig, (Sun Aug 22, 10:14 pm)
Re: help needed with EXPORT_SYMBOL, Brian Gerst, (Mon Aug 23, 4:48 am)
Re: help needed with EXPORT_SYMBOL, Peter Zijlstra, (Mon Aug 23, 6:17 am)
Re: help needed with EXPORT_SYMBOL, Jan Engelhardt, (Mon Aug 23, 6:32 am)
Re: help needed with EXPORT_SYMBOL, Peter Zijlstra, (Mon Aug 23, 6:43 am)
Re: help needed with EXPORT_SYMBOL, Brian Gerst, (Mon Aug 23, 6:44 am)
Re: help needed with EXPORT_SYMBOL, Peter Zijlstra, (Mon Aug 23, 7:05 am)
Re: help needed with EXPORT_SYMBOL, Aijaz Baig, (Mon Aug 23, 9:44 pm)
Re: Fwd: help needed with EXPORT_SYMBOL, Aijaz Baig, (Wed Aug 25, 2:27 am)
Re: Fwd: help needed with EXPORT_SYMBOL, Jan Engelhardt, (Wed Aug 25, 3:06 am)
Re: Fwd: help needed with EXPORT_SYMBOL, Peter Zijlstra, (Wed Aug 25, 3:23 am)
Re: Fwd: help needed with EXPORT_SYMBOL, Randy Dunlap, (Wed Aug 25, 8:37 am)