Messages in this thread | | | Date | Sat, 12 Nov 2005 14:48:49 +0100 | From | matthieu castet <> | Subject | Re: [PATCH] fix leakes in request_firmware_nowait |
| |
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)) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |