[linux-dvb] [OT] request_firmware()

Thomas Kaiser linux-dvb at kaiser-linux.li
Thu Feb 14 22:08:45 CET 2008

Michael Krufky wrote:
> On Thu, Feb 14, 2008 at 3:37 PM, Thomas Kaiser
> <linux-dvb at kaiser-linux.li> 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?




More information about the linux-dvb mailing list