[linux-dvb] Doubt in file dvb-usb-dvb.c

Patrick Boettcher patrick.boettcher at desy.de
Fri Jul 27 11:48:42 CEST 2007

On Fri, 27 Jul 2007, lwtbenben wrote:

>     In dvb-usb-dvb.c, where we want to register our frontend to the DVB core, we have these condition checked;    
>     if (adap->props.frontend_attach(adap) == 0 && adap->fe != NULL)    

I think this was just done to do a santiy check whether the 
frontend_attach was really attaching a frontend.

>     But actually pointer adap->fe is filled in the fuction adap->props.frontend_attach(adap),     
>     I think this unsuitable.    
>     And my driver just can not enter this function to register my frontend to Linux DVB core.
>     Any advice?

It cannot enter this function? Why, because the compiler is checking 
adap->fe first?


More information about the linux-dvb mailing list