Re: [OT] request_firmware()

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

 



Michael Krufky wrote:
> On Thu, Feb 14, 2008 at 3:37 PM, Thomas Kaiser
> <linux-dvb@xxxxxxxxxxxxxxx> wrote:
>> Hello
>>
>>  I know this is the wrong list to ask, but you use this function (see subject)
>>  and I think somebody can answer my question.
>>
>>  Why does request_firmware need a device as parameter?
>>  int request_firmware(const struct firmware **fw, const char *name,
>>                      struct device *device);
>>
>>  I thought request_firmware just loads the firmware in the struct firmware?
> 
> 
> IIRC, when the device is destroyed, it is a signal for the memory used
> to store the firmware to be freed if not done already.
> 
> -Mike

So, that means when the pointer to device gets null the memory which holds the 
firmware is freed?

Thanks,

Thomas


-- 
http://www.kaiser-linux.li

_______________________________________________
linux-dvb mailing list
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