Re: idea on how to break the static dependencies on demodulator modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Will dvb_attach() work on a static inline non-EXPORT_SYMBOLed function?

Heh, just realised this actually works quite well :)

It doesn't matter - we want the symbol lookup to fail anyway since the driver 
is not compiled in. All the static inline function is doing is providing the 
correct method signature for the XXX_attach() function.

So for a static build:
dvb_attach OFF, fecustomise OFF:
Static linkage to real functions.

dvb_attach OFF, fecustomise ON:
Static linkage, some functions will be faked as static inlines returning NULL

dvb_attach ON, fecustomise OFF:
Uses symbol_get - all symbols are present in the kernel.

dvb_attach ON, fecustomise ON:
Uses symbol_get - some symbols are missing since they're defined as static 
inline. symbol_get simply fails to find the symbol.

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux