public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: matthieu castet <castet.matthieu@free.fr>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix leakes in request_firmware_nowait
Date: Sat, 12 Nov 2005 14:48:49 +0100	[thread overview]
Message-ID: <4375F2C1.8050609@free.fr> (raw)
In-Reply-To: <20051111181322.7fbb887a.akpm@osdl.org>

Andrew Morton wrote:
> matthieu castet <castet.matthieu@free.fr> wrote:
> 
> 
> What does the call to fw_work->cont(NULL, ...) do?
> 
> 
It tells to the callback that the firmware request fails [1].

Matthieu



[1]
/**
  * request_firmware_nowait:
  *
  * Description:
  *      Asynchronous variant of request_firmware() for contexts where
  *      it is not possible to sleep.
  *
  *      @hotplug invokes hotplug event to copy the firmware image if 
this flag
  *      is non-zero else the firmware copy must be done manually.
  *
  *      @cont will be called asynchronously when the firmware request 
is over.
  *
  *      @context will be passed over to @cont.
  *
  *      @fw may be %NULL if firmware request fails.
  *
  **/
int
request_firmware_nowait(
         struct module *module, int hotplug,
         const char *name, struct device *device, void *context,
         void (*cont)(const struct firmware *fw, void *context))

      reply	other threads:[~2005-11-12 13:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-10 21:45 [PATCH] fix leakes in request_firmware_nowait matthieu castet
2005-11-10 21:48 ` matthieu castet
2005-11-12  2:13   ` Andrew Morton
2005-11-12 13:48     ` matthieu castet [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=4375F2C1.8050609@free.fr \
    --to=castet.matthieu@free.fr \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.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