Skip to contentSkip to conversation

request_firmware()

linux-dvb Thomas Kaiser 2 participants 3 messages Feb 14, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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?

Thanks,

Thomas

Signature · 6 lines
http://www.kaiser-linux.li

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#1 lore raw
Quoted 10 lines · Thomas Kaiser

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

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw
Quoted 11 lines · Michael Krufky
Quoted 9 lines · Thomas Kaiser

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);
Quoted 7 lines
Quoted 1 line

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

Signature · 6 lines
http://www.kaiser-linux.li

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb