public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Kaiser <linux-dvb@kaiser-linux.li>
To: Michael Krufky <mkrufky@linuxtv.org>
Cc: _LinuxTV-DVB - Mailinglist <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] [OT] request_firmware()
Date: Thu, 14 Feb 2008 22:08:45 +0100	[thread overview]
Message-ID: <47B4ADDD.5070700@kaiser-linux.li> (raw)
In-Reply-To: <37219a840802141254y12375e4dxd0e61cec97f8dc1a@mail.gmail.com>

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

Thanks,

Thomas


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

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

      reply	other threads:[~2008-02-14 21:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 20:37 [linux-dvb] [OT] request_firmware() Thomas Kaiser
2008-02-14 20:54 ` Michael Krufky
2008-02-14 21:08   ` Thomas Kaiser [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B4ADDD.5070700@kaiser-linux.li \
    --to=linux-dvb@kaiser-linux.li \
    --cc=linux-dvb@linuxtv.org \
    --cc=mkrufky@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox